Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }