Beispiel #1
0
        public static KeyEventArgs ToEto(this swi.KeyEventArgs e, KeyEventType keyType)
        {
            var key = KeyMap.Convert(e.Key, swi.Keyboard.Modifiers);

            return(new KeyEventArgs(key, keyType)
            {
                Handled = e.Handled
            });
        }
Beispiel #2
0
        public static KeyPressEventArgs Convert(swi.KeyEventArgs e)
        {
            var key = KeyMap.Convert(e.Key, swi.Keyboard.Modifiers);

            return(new KeyPressEventArgs(key)
            {
                Handled = e.Handled
            });
        }