lytico / xwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyEventArgs needs to give back the KeyCode

lytico opened this issue · comments

there is no chance to get keys not defined in Xwt.Key-enum. So no special charactes can be handled.
Solution:
add long Raw to KeyEventArgs
this contains the keycode catched by the OS.
Gtk:
ushort Gdk.EventKey.HardwareKeycode The raw code of the key that was pressed
gtk.gdk.Keymap — an object containing mappings of keys to key values.
Wpf:
http://stackoverflow.com/questions/5825820/how-to-capture-the-character-on-different-locale-keyboards-in-wpf-c
http://stackoverflow.com/questions/1053210/help-with-the-wpf-textcompositionmanager-events