public void OnKeyDown(KeyboardEvent e) { Key key = converter.ConvertBackKey(e.KeyCode, e.Location); keyDownHandled = ProcessKeyboardEvent(new RawKeyboardEventArgs(key, KeyStates.Down, e.Repeat, GetTimestamp())); if (keyDownHandled) { e.PreventDefault(); } }
private void OnKeyDown(Event e) { KeyboardEvent keyboardEvent = (KeyboardEvent)e; Key key = converter.ConvertBackKey(keyboardEvent.KeyCode, (KeyLocation)keyboardEvent.Location); keyDownHandled = ProcessKeyboardEvent(new RawKeyboardEventArgs(key, KeyStates.Down, keyboardEvent.Repeat, GetTimestamp())); if (keyDownHandled) { e.PreventDefault(); } }