Fix hot-key handling in inputcontext.c.
authorYusuke Sato <yusukes@chromium.org>
Wed, 22 Dec 2010 14:03:03 +0000 (23:03 +0900)
committerYusuke Sato <yusukes@chromium.org>
Wed, 22 Dec 2010 14:03:03 +0000 (23:03 +0900)
Without the fix, some key combinations might not trigger a hot-key event.
For example, one of Chrome OS hot-keys, "press Shift, then press Alt, then release Alt", does not work without the fix.

BUG=none
TEST=manually checked using ChromeOS and IBus-1.4

Review URL: http://codereview.appspot.com/3828041

bus/inputcontext.c

index a6932cc..e30ff6c 100644 (file)
@@ -2248,7 +2248,7 @@ bus_input_context_filter_keyboard_shortcuts (BusInputContext    *context,
         }
     }
 
-    if (keycode != 0 && bus_ibus_impl_is_use_sys_layout (BUS_DEFAULT_IBUS)) {
+    if (keycode != 0 && bus_ibus_impl_is_use_sys_layout (BUS_DEFAULT_IBUS) == FALSE) {
         IBusKeymap *keymap = BUS_DEFAULT_KEYMAP;
         if (keymap != NULL) {
             guint tmp = ibus_keymap_lookup_keysym (keymap,