Browse Source

basic non-ime text input.

pull/9257/head
Dan Walmsley 4 years ago
parent
commit
31cef0b54f
  1. 9
      src/Web/Avalonia.Web/AvaloniaView.cs

9
src/Web/Avalonia.Web/AvaloniaView.cs

@ -254,7 +254,14 @@ namespace Avalonia.Web
private bool OnKeyDown (string code, string key, int modifier)
{
return _topLevelImpl.RawKeyboardEvent(RawKeyEventType.KeyDown, code, key, (RawInputModifiers)modifier);
var handled = _topLevelImpl.RawKeyboardEvent(RawKeyEventType.KeyDown, code, key, (RawInputModifiers)modifier);
if (!handled)
{
handled = _topLevelImpl.RawTextEvent(key);
}
return handled;
}
private bool OnKeyUp(string code, string key, int modifier)

Loading…
Cancel
Save