`
pipal
  • 浏览: 163542 次
  • 性别: Icon_minigender_1
  • 来自: 南宁
社区版块
存档分类
最新评论

更换iBus五笔的左与右Shif

阅读更多

更换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输入法

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics