You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a TextBox has input Focus, keypresses that generate TextInput events are not fired as KeyDown events as well. Keypresses that do not generate TextInput events do fire KeyDown events (Tunnel)
This only seems to happen on macOS, Windows & Linux function correctly.
To Reproduce
MyText is a Vanilla TextBox
/* Does not appear to ever be invoked for Keys that cause TextInput*/
MyText.AddHandler(KeyDownEvent, (sender, args) =>
{
Debugger.Break();
}, RoutingStrategies.Tunnel);
Expected behavior
I expect that the KeyDown events will fire for every keystroke, as they do on Windows & Linux.
At least in the Android case, this appears to be caused at the Xamarin level due to IME handling. As a result I decided that it was likely not something Avalonia actually had much control over, and so didn't file a bug and instead started working on alternatives for my use case.
Describe the bug
If a TextBox has input Focus, keypresses that generate TextInput events are not fired as KeyDown events as well. Keypresses that do not generate TextInput events do fire KeyDown events (Tunnel)
This only seems to happen on macOS, Windows & Linux function correctly.
To Reproduce
MyText is a Vanilla TextBox
Expected behavior
I expect that the KeyDown events will fire for every keystroke, as they do on Windows & Linux.
Avalonia version
11.1.0-beta2
OS
macOS
Additional context
AvaloniaTest.zip
The text was updated successfully, but these errors were encountered: