Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1414 by [email protected]: 如何使用^[替代ibus-table中的ESC作用?
http://code.google.com/p/ibus/issues/detail?id=1414
What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...):Ubuntu 11.10
Architecture (i386, x86_64): x86_64
IBus version: 1.3.99.20110818
使用的是倉頡輸入法,用的是ibus-table
因為習慣使用Vim了,所以對於<CTRL-H>、<CTRL-M>和<CTRL-[>的熟悉程度遠比<BS>、
<E
nter>和<ESC>來的高,而且也按的比較習慣。也因此想請教如何將ibus也如此配置?
之前有試著修過一下自己table.py,差異如下
$ diff /usr/share/ibus-table/engine/table.py
/usr/share/ibus-table/engine/table.py.orig > ~/diff
$ vim ~/diff
1369c1369
< if key.code == keysyms.Escape or (unichr(key.code) == u'[' and
key.mask & modifier.CONTROL_MASK):
---
if key.code == keysyms.Escape:
1374c1374
< elif key.code in (keysyms.Return, keysyms.KP_Enter) or
((unichr(key.code) == u'm' or unichr(key.code) == u'M') and key.mask &
modifier.CONTROL_MASK):
---
elif key.code in (keysyms.Return, keysyms.KP_Enter):
1414c1414
< elif key.code == keysyms.BackSpace or ((unichr(key.code) == u'h'
or unichr(key.code) == u'H') and key.mask & modifier.CONTROL_MASK):
---
elif key.code == keysyms.BackSpace:
對於其他按鍵沒有問題,但是在<CTRL-[>的部份這樣設置後<CTRL-[>的鍵值就無法被其
他軟體接收到,而用作同功能的<ESC>就沒有這個問題,不知是哪方面的設置有誤呢?
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en