summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2018-11-29 18:06:12 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2018-11-29 18:06:12 +0900
commitf909afcd84dd58ff66f4a92a1a3cc8e128b4e017 (patch)
tree20697f4e023fa7bde61474ed02b99ebb30b77d97
parentb49160ada120b245380ca9e7bf8af2af026105b8 (diff)
downloadibus-anthy-reset-preedit-keep.tar.gz
engine: Keep preedit with reset signalreset-preedit-keep
Now reset is emitted with mouse click [1] and each IME needs to handle the signal for the preedit mode. [1] https://github.com/fujiwarat/ibus/commits/focus-out-gtk-client2
-rw-r--r--engine/python2/engine.py3
-rw-r--r--engine/python3/engine.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/engine/python2/engine.py b/engine/python2/engine.py
index 733382a..dba1f7f 100644
--- a/engine/python2/engine.py
+++ b/engine/python2/engine.py
@@ -1072,6 +1072,9 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
def do_reset(self):
+ mode = self.__prefs.get_value('common', 'behavior-on-focus-out')
+ if mode == 2:
+ return
self.__reset()
self.__invalidate()
diff --git a/engine/python3/engine.py b/engine/python3/engine.py
index 1779e3f..9aac86e 100644
--- a/engine/python3/engine.py
+++ b/engine/python3/engine.py
@@ -1067,6 +1067,9 @@ class Engine(IBus.EngineSimple):
self.__invalidate()
def do_reset(self):
+ mode = self.__prefs.get_value('common', 'behavior-on-focus-out')
+ if mode == 2:
+ return
self.__reset()
self.__invalidate()