summaryrefslogtreecommitdiffstats
path: root/daemon/inputcontext.py
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-09-20 09:37:56 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-09-20 09:37:56 +0800
commitbac2b876fe4d18448b0491babb0d5ed3bdf56102 (patch)
treed3c66e89f05d1d685dfd34214ff670d3da9ad69a /daemon/inputcontext.py
parent92a40e0b50c24a97d1da46c1de41e4409f7508cb (diff)
downloadibus-bac2b876fe4d18448b0491babb0d5ed3bdf56102.tar.gz
ibus-bac2b876fe4d18448b0491babb0d5ed3bdf56102.tar.xz
ibus-bac2b876fe4d18448b0491babb0d5ed3bdf56102.zip
Add new IBUS_CAP_FOCUS capability for input context.
Diffstat (limited to 'daemon/inputcontext.py')
-rw-r--r--daemon/inputcontext.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/inputcontext.py b/daemon/inputcontext.py
index b3def5c..26c8f8a 100644
--- a/daemon/inputcontext.py
+++ b/daemon/inputcontext.py
@@ -112,6 +112,7 @@ class InputContext(ibus.Object):
self.__support_preedit = True
self.__support_aux_string = False
self.__support_lookup_table = False
+ self.__support_focus = True
self.__preedit_string = None
self.__preedit_attrs = None
@@ -189,6 +190,10 @@ class InputContext(ibus.Object):
self.__support_preedit = (caps & (1 << 0)) != 0
self.__support_aux_string = (caps & (1 << 1)) != 0
self.__support_lookup_table = (caps & (1 << 2)) != 0
+ self.__support_focus = (caps & (1 << 3)) != 0
+
+ def get_support_focus(self):
+ return self.__support_focus
def set_enable(self, enable):
if self.__enable != enable: