Commit 756f8c5d authored by Mathieu Bridon's avatar Mathieu Bridon

Clear the current input on focus out

When the user switches between application windows or input contexts, we
should just clear the current input and let them start fresh.
parent d37da163
......@@ -105,6 +105,16 @@ class Engine(IBus.Engine):
self.init_cangjie()
def do_focus_out (self):
"""Handle focus out event
This happens, for example, when switching between application windows
or input contexts.
Such events should clear the current input.
"""
self.clear_current_input()
def do_cancel_input(self):
"""Cancel the current input.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment