[maemo-developers] No key events for virtual keyboard?
From: Till Harbaum / Lists lists at harbaum.orgDate: Fri Jan 9 14:19:56 EET 2009
- Previous message: No key events for virtual keyboard?
- Next message: No key events for virtual keyboard?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, Am Freitag 09 Januar 2009 schrieb Eero Tamminen: > VKBD sends the events as X messages to the Gtk editing widget > (i.e. something having Gtk IM context) that has the focus. I was already thinking of fetching the text input from the entry fields and use that as the input to the origimal tetrinet engine. But this has one major drawback: This requires a widget to have focus, even with the physcial keyboard of the n810. And while i try to make the entire game stylus controllable experienced tetrinet users may actually prefer to use the keyboard shortcuts which won't work at all if no editing widget has the focus. I can't add some editing widget as a container for the entire game gui, can i? The problem bascially breaks down to: I'd like my app to: - directly receive any key event from the physcial keyboard to allow keyboard based game control - be able to grab things from gtk_entry's filled by the virtual keyboard The problem is: If i do both the physical keyboards input will pass my key handling twice: Once via the key event and a second time if an editable widget as focus its content is evaluated a second time. I don't have an idea how to solve this. > Apparently it still synthetizes couple of keys (apparently Enter > and maybe Backspace) as normal X key events, but that doesn't work > for all keys (X key events cannot represent all unicode characters). Ok, understood. Although i don't understand why you don't do this for all keys that have a X key event representation. Till
- Previous message: No key events for virtual keyboard?
- Next message: No key events for virtual keyboard?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]