Comment #3 on issue 1162 by takao.fujiwara1: ibus emits GdkEventKey.state
with unused bits.
http://code.google.com/p/ibus/issues/detail?id=1162
The following is the application code:
http://www.vimprobable.org/get/vimprobable1_current.tar.bz2
#define CLEAN(mask) (mask & ~(GDK_MOD2_MASK) & ~(GDK_BUTTON1_MASK) &
~(GDK_BUTTON2_MASK) & ~(GDK_BUTTON3_MASK) & ~(GDK_BUTTON4_MASK) &
~(GDK_BUTTON5_MASK))
gboolean
webview_keypress_cb(WebKitWebView *webview, GdkEventKey *event) {
switch (mode) {
case ModeNormal:
if (CLEAN(event->state) == 0) {
...
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en