醉爱PHP

更换iBus五笔的左与右Shift快捷键

by admin on 十一.19, 2009, under php

习惯了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输入法

:

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...