コード例 #1
0
        private void OnKeyDown(Event e)
        {
            KeyboardEvent keyboardEvent = (KeyboardEvent)e;

            Key key = converter.ConvertBackKey(keyboardEvent.KeyCode, keyboardEvent.Location);

            keyDownHandled = ProcessKeyboardEvent(new RawKeyboardEventArgs(key, KeyStates.Down, keyboardEvent.Repeat, GetTimestamp()));

            if (keyDownHandled)
            {
                e.PreventDefault();
            }
        }