Permalink
Browse files

Fixed to return false in ibus_simple_engine_process_key_event

IM clients expect filter_keypress returns FALSE when IME is disabled.
Now we use the simple engine instead of the disabled state so
it would be better that process_key_event returns FALSE for ASCII.

BUG=RH#769133
TEST=Linux desktop

Review URL: http://codereview.appspot.com/5489126
  • Loading branch information...
fujiwarat committed Dec 30, 2011
1 parent 5a122df commit 64a8da3cd13783eb2c6c9dd952e02be63af4a832
Showing with 5 additions and 1 deletion.
  1. +5 −1 xkb/ibus-simple-engine.c
View
@@ -790,7 +790,11 @@ no_sequence_matches (IBusSimpleEngine *simple,
}
ch = ibus_keyval_to_unicode (keyval);
if (ch != 0 && !g_unichar_iscntrl (ch)) {
/* IBUS_CHANGE: RH#769133
* Since we use ibus xkb engines as the disable state,
* do not commit the characters locally without in_hex_sequence. */
if (ch != 0 && !g_unichar_iscntrl (ch) &&
simple->in_hex_sequence) {
ibus_simple_engine_commit_char (simple, ch);
return TRUE;
}

0 comments on commit 64a8da3

Please sign in to comment.