text field cursr changes on windows doesn't get read by screenreaders #17842
Open
Description
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