Example #1
0
 WebKeyboardEvent CreateWebKeyboardEvent(Axiom.Input.KeyEventArgs e, WebKeyType type)
 {
     return(new WebKeyboardEvent()
     {
         IsSystemKey = false,
         Type = type,
         Modifiers = AwesomiumUtil.ConvertModifierKeys(e.Modifiers),
         VirtualKeyCode = AwesomiumUtil.ConvertKeyCodesToVirtualKey(e.Key)
     });
 }
Example #2
0
 WebKeyboardEvent CreateWebKeyboardEvent(Axiom.Input.KeyEventArgs e)
 {
     return(new WebKeyboardEvent()
     {
         IsSystemKey = false,
         Text = new ushort[] { (ushort)e.KeyChar, 0, 0, 0 },
         Type = WebKeyType.Char,
         Modifiers = AwesomiumUtil.ConvertModifierKeys(e.Modifiers),
         VirtualKeyCode = VirtualKey.UNKNOWN
     });
 }