Attached you can find a simple lua demo of a matchbox-keyboard embeded into a gtk program, and whose keystrokes are forwarded to a gtk.TextView widget.
It's a mere translation of the C example included with matchbox-keyboard v0.1 sources.
It works on my desktop, but sadly enough, the matchbox-keyboard included in my Iliad doesn't accept the "-xid" argument, and looking at the sources it has no support to be embedded.
So I'm coming back to the first question, how does Iliad manage to open the keyboard and handle the keystrokes?
|