1.可選字由預設的1頁6個換成主流的1頁9個
尋找 _page_size = 6
修改為
2.空白鍵跳下一頁選字
尋找 elif key.code == keysyms.space:
將下面的
o_py = self._editor._py_mode
sp_res = self._editor.space ()
#return (KeyProcessResult,whethercommit,commitstring)
if sp_res[0]:
self.commit_string (sp_res[1])
#self.add_string_len(sp_res[1])
self.db.check_phrase (sp_res[1], sp_res[2])
else:
if sp_res[1] == u' ':
self.commit_string (cond_letter_translate (u" "))
if o_py != self._editor._py_mode:
self._refresh_properties ()
self._update_ui ()
return True
換成
res = self._editor.page_down()
self._update_lookup_table ()
return res
3.backspace鍵 跳上一頁選字
尋找
elif key.code == keysyms.BackSpace:
將下面的
res = self._editor.backspace ()
self._update_ui ()
取代為
res = self._editor.page_up ()
self._update_lookup_table ()
4.單一個碼空白鍵自動選字,數字鍵區選字
尋找
if key.mask & modifier.RELEASE_MASK:
return True
if self._editor.is_empty ():
於 return True
與 if self._editor.is_empty ():
之間
新增
if key.code>=65457 and key.code<=65465 :
key.code-=65408
elif key.code == keysyms.space and len(self._editor._chars[0])==1:
key.code=keysyms._1