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 }); }
public static KeyPressEventArgs Convert(swi.KeyEventArgs e) { var key = KeyMap.Convert(e.Key, swi.Keyboard.Modifiers); return(new KeyPressEventArgs(key) { Handled = e.Handled }); }