ITeye博客

更换iBus五笔的左与右Shif

pipal · 2010-05-18 00:09 · Linux学习笔记 · 操作系统 · Markdown

更换iBus五笔的左与右Shif

本文转自“http://www.php5x.com/?cat=5”

习惯了windows下的极点输入法,在linux下的ibus的五笔,切换中英文时,要按左shift,总是不习惯。既然是开源的输入法,就自己动手改了吧。

cd /usr/share/ibus-table/engine/

sudo vim table.py

 

搜索 “Match mode switch hotkey”

# Match mode switch hotkey
if not self._editor._t_chars and ( self._match_hotkey (key, keysyms.Shift_L, modifier.SHIFT_MASK + modifier.RELEASE_MASK)):

把 Shift_L 改为 Shift_R

搜索 “because we ignore all Release event below”

# because we ignore all Release event below.
if self._match_hotkey (key, keysyms.Shift_R, modifier.SHIFT_MASK + modifier.RELEASE_MASK) and self._ime_py:

把 Shift_R 改为 Shift_L

保存。

重启ibus输入法

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。