Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text field cursr changes on windows doesn't get read by screenreaders #17842

Open
emperor-limitless opened this issue Dec 29, 2024 · 0 comments
Labels

Comments

@emperor-limitless
Copy link

emperor-limitless commented Dec 29, 2024

Describe the bug

in a text field, when you change the cursor while moving, for example, hello is typed in a field, and you try moving inside it with arrows, or up and down, or control with arrows, etc, nothing gets spoken
I believe the cursor is changing, tested typing other things, but there's no announcement of where it changed,.

To Reproduce

using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;

namespace avalon;

public class MainWindow : Window
{
    public MainWindow()
    {
        var textBox = new TextBox
        {
            Width = 200,
            Height = 30,
            Margin = new Thickness(10),
            Watermark = "Enter text here...",
        };

        var button = new Button
        {
            Content = "Click Me",
            Width = 100,
            Height = 30,
            Margin = new Thickness(10)
        };

        button.Click += (sender, args) =>
        {
            System.Diagnostics.Debug.WriteLine(textBox.Text);
        };

        var stackPanel = new StackPanel
        {
            Orientation = Orientation.Vertical,
            HorizontalAlignment = HorizontalAlignment.Center,
            VerticalAlignment = VerticalAlignment.Center,
            Children =
            {
                textBox,
                button
            }
        };

        this.Content = stackPanel;

        Title = "Avalonia Window";
        Width = 400;
        Height = 300;
    }
}

Expected behavior

when the user is changing the cursor, the following should happen

  • left and right: Speaks the character at cursor after move.
  • control left and right: Speak the word at cursor after move.
  • up and down, speaks entire string, or if multiline, speak the line at cursor after move.

Avalonia version

11.2.1

OS

Windows

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant