diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-03-05 14:39:12 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-03-05 14:39:12 +0800 |
commit | d415e945d62d69c097cf6aae701f42806529dfb7 (patch) | |
tree | 6869b129f47c6891d3757c18d9e48ded18ad5015 /bus | |
parent | 740acea3c7103af63f4e572c4e4c3ae39153430e (diff) | |
download | ibus-d415e945d62d69c097cf6aae701f42806529dfb7.tar.gz ibus-d415e945d62d69c097cf6aae701f42806529dfb7.tar.xz ibus-d415e945d62d69c097cf6aae701f42806529dfb7.zip |
Process release key event correctly.
Diffstat (limited to 'bus')
-rw-r--r-- | bus/inputcontext.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bus/inputcontext.c b/bus/inputcontext.c index 663812e..4d66232 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -2048,6 +2048,9 @@ bus_input_context_filter_keyboard_shortcuts (BusInputContext *context, static GQuark next_factory; static GQuark prev_factory; + static guint prev_keyval = 0; + static guint prev_modifiers = 0; + GQuark event; if (trigger == 0) { @@ -2059,7 +2062,12 @@ bus_input_context_filter_keyboard_shortcuts (BusInputContext *context, event = ibus_hotkey_profile_filter_key_event (BUS_DEFAULT_HOTKEY_PROFILE, keyval, modifiers, + prev_keyval, + prev_modifiers, 0); + prev_keyval = keyval; + prev_modifiers = modifiers; + if (event == trigger) { if (priv->engine == NULL) { g_signal_emit (context, context_signals[REQUEST_ENGINE], 0, NULL); |