---
title: "更换iBus五笔的左与右Shif"
author: "pipal"
date: "2010-05-18T00:09:44Z"
tags: []
categories: ["操作系统"]
slug: "ibus-shif"
draft: false
lastmod: "2011-02-04T19:43:23Z"
id: 668396
url: "https://pipal.iteye.com/blog/668396"
---

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