LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 731|回复: 1

给fcitx-1.8.5的一个小补丁

[复制链接]
发表于 2003-12-20 15:53:25 | 显示全部楼层 |阅读模式
当同时使用emacs时,需要使用ctrl-space或者ctrl-shift-space作为set-mark的快捷键,
而fcitx将其全部占用为输入法切换。我修改了xim.c,使按ctrl-shift-space时不进行输入法
切换。这样就可以正常使用emacs的set-mark功能了。

在debian sid上测试通过。

*** fcitx-1.8.5/xim.c   Thu May 15 14:35:29 2003
--- xim.c       Sat Dec 20 15:37:13 2003
***************
*** 75,87 ****
   
  /* Trigger Keys List */
  static XIMTriggerKey Trigger_Keys_Ctrl_Shift[] = {
!     {XK_space, ControlMask, ControlMask},
      {XK_Shift_L, ControlMask, ControlMask},
      {0L, 0L, 0L}
  };
   
  static XIMTriggerKey Trigger_Keys[] = {
!     {XK_space, ControlMask, ControlMask},
      {0L, 0L, 0L}
  };
   
--- 75,87 ----
   
  /* Trigger Keys List */
  static XIMTriggerKey Trigger_Keys_Ctrl_Shift[] = {
!     {XK_space, ControlMask, ControlMask | ShiftMask},
      {XK_Shift_L, ControlMask, ControlMask},
      {0L, 0L, 0L}
  };
   
  static XIMTriggerKey Trigger_Keys[] = {
!     {XK_space, ControlMask, ControlMask | ShiftMask},
      {0L, 0L, 0L}
  };
发表于 2003-12-21 17:33:44 | 显示全部楼层
兄弟既然会编程,跟yuking合伙也不错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表