lytico / xwt

MIT License
1 stars 2 forks source link

KeyEventArgs needs to give back the KeyCode #21

Open lytico opened 10 years ago

lytico commented 10 years ago

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