Package: ibus-chewing
Version: 1.3.9.2

Cannot close candidate window with escape key since selected tone.

Before selected tone, we can press escape to close candidate window
and leave input mode. But it doesn't work after tone was selected. Also, it
show us a window which has nothing.

I made a patch to solve this problem:

--- a/ibus-chewing-1.3.9.2/src/IBusChewingEngine.gob 2010-11-19
10:41:24.000000000 +0800
+++ b/ibus-chewing-1.3.9.2/src/IBusChewingEngine.gob 2011-03-25
22:36:37.000000000 +0800
@@ -762,6 +762,18 @@
     }
     break;
  case CHEWING_INPUT_MODE_SELECTING:
+ /* ESC to cancel input mode */
+ if (self->chewingFlags & CHEWING_FLAG_PLAIN_ZHUYIN &&
+ chewing_get_escCleanAllBuf(self->context) &&
+ self->_priv->key_last == IBUS_Escape) {
+
+ /* Close candidate window */
+ self->inputMode=CHEWING_INPUT_MODE_SELECTION_DONE;
+ chewing_handle_Esc(self->context);
+ ibus_chewing_engine_clear_status_flag(self, ENGINE_STATUS_SHOW_CANDIDATE);
+ break;
+ }
+
     /* Switch to another page */
     if (self_is_selectKey(self, self->_priv->key_last)){
  self->inputMode=CHEWING_INPUT_MODE_SELECTION_DONE;

Reply via email to