GNOME Bugzilla – Bug 160376
gtkimcontextime.c: double commit bug and ctrl key disregard
Last modified: 2011-02-04 16:17:18 UTC
Please describe the problem: 1. double commit bug When use_preedit is FALSE, "commit" signal is emitted doubly. First time, "commit" signal which has all characters is emitted in gtk_im_context_ime_message_filter. After it, "commit" signals are emitted every character in gtk_im_context_ime_filter_keypress. (If use_preedit is TRUE / default, this bug does not occur.) 2. ctrl key disregard When a key with Ctrl is pushed, "commit" signal is emitted. For example, if Crtl+z is pushed, "commit" signal which has "z" is emitted. Steps to reproduce: 1. use Windows IME and push Ctrl+Z Actual results: (Please see attached jpeg file.) Expected results: If emitted in gtk_im_context_ime_message_filter, it is not emitted in gtk_im_context_ime_filter_keypress. And if (event->state & GDK_CONTROL_MASK) is true, "commit" signal is not emitted in gtk_im_context_ime_filter_keypress. Does this happen every time? every time Other information:
Created attachment 34465 [details] This actually happens.
Created attachment 34466 [details] [review] patch for gtkimcontextime.c
Comment on attachment 34466 [details] [review] patch for gtkimcontextime.c looks good to me
2004-12-06 Matthias Clasen <mclasen@redhat.com> * modules/input/gtkimcontextime.c: Prevent double commits, don't commit when Ctrl is present. (#160376, Kazuki IWAMOTO)