From 911490b3f8adac433a91153000a63a0a7143fff2 Mon Sep 17 00:00:00 2001 From: Yusuke Sato Date: Wed, 22 Dec 2010 23:03:03 +0900 Subject: [PATCH] Fix hot-key handling in inputcontext.c. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/inputcontext.c b/bus/inputcontext.c index a6932cc..e30ff6c 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -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, -- 2.7.4