Hide preedit when disable input method.
authorHuang Peng <shawn.p.huang@gmail.com>
Mon, 11 Aug 2008 13:03:45 +0000 (21:03 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Mon, 11 Aug 2008 13:03:45 +0000 (21:03 +0800)
daemon/inputcontext.py

index 4926fafb0fb6827e297c4dc9e3b89d3d64e11368..f4ee79f1ae553b2a06b23e884c85cdfb6ebcf393 100644 (file)
@@ -199,6 +199,7 @@ class InputContext(ibus.Object):
                     self.__engine.enable()
                     self.__engine.focus_in()
             else:
+                self.hide_preedit()
                 self.__ibusconn.emit_dbus_signal("Disabled", self.__id)
                 if self.__engine:
                     self.__engine.disable()