From: Mike G. <mik...@ca...> - 2016-07-15 23:41:17
|
I'm having to make a change to the core in order to support international keyboards (such as icelandic). Basically you cannot just use key pressed, because in order to type certain characters you need to press combinations of keys. The system keyboard driver only sends the key typed event when certain combinations have been completed, but the key pressed event is sent immediately. However we still need key pressed for control keys (e.g. arrow keys, alt, ctrl ... etc.) and possibly also for normal keys, even when typing. I am adding a KeyTyped event to vexi to directly handle the typed keys and mirroring Java's key handling model. That means I need to modify the text widgets. On KeyPress they will ignore single chars (which will come later in a KeyTyped event) instead of handling as currently. I don't think adding the extra event can be avoided without compromising Vexi's functionality/key handling ability. Plus I think it is just going to be saner to mimic the (ugly but workable) java model rather than trying to come up with our own (e.g. merging KeyPressed and KeyTyped). - mike |