Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /usr/share/ibus-table/engine/table.py 2010-06-22 16:09:33.000000000 +0800
- +++ table.py 2010-10-12 11:45:06.000000000 +0800
- @@ -123,7 +123,7 @@ class editor(object):
- else:
- if self.db._is_chinese:
- # if IME declare as Chinese IME
- - return 0
- + return 4
- else:
- return -1
- except:
- @@ -831,7 +831,7 @@ class tabengine (ibus.EngineBase):
- # _new_phrase_color = 0xffffff
- # lookup table page size
- - _page_size = 6
- + _page_size = 9
- def __init__ (self, bus, obj_path, db ):
- super(tabengine,self).__init__ (bus,obj_path)
- @@ -870,7 +870,7 @@ class tabengine (ibus.EngineBase):
- del self._chars
- # check whether we can use '=' and '-' for page_down/up
- - self._page_down_keys = [keysyms.Page_Down, keysyms.KP_Page_Down]
- + self._page_down_keys = [keysyms.space, keysyms.Page_Down, keysyms.KP_Page_Down]
- self._page_up_keys = [keysyms.Page_Up, keysyms.KP_Page_Up]
- if '=' not in self._valid_input_chars \
- and '-' not in self._valid_input_chars:
- @@ -1436,7 +1436,7 @@ class tabengine (ibus.EngineBase):
- self._update_ui ()
- return res
- - elif key.code == keysyms.space:
- + elif len (self._editor._chars[0]) < self._editor._max_key_len and key.code == keysyms.space:
- o_py = self._editor._py_mode
- sp_res = self._editor.space ()
- #return (KeyProcessResult,whethercommit,commitstring)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement