右shift键不起作用

Kir*_*irk 5 keyboard keyboard-layout

我安装了相对较新的 Ubuntu 15.04 beta。直到昨天,一切都进展顺利。在 2015 年 4 月 1 日的某个时候,我的右键Shift不再像钥匙一样工作Shift,我一直无法弄清楚原因。我很确定它是软件,因为在我的各种测试中,我能够使用 xmodmap 交换左右Shift键。

我想要做的是将两个Shift键都用作Shift. 现在我正在使用美国布局:

$ setxkbmap -print
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete"  };
    xkb_symbols   { include "pc+us+inet(evdev)+capslock(ctrl_modifier)+terminate(ctrl_alt_bksp)"    };
    xkb_geometry  { include "pc(pc105)" };
};
Run Code Online (Sandbox Code Playgroud)

我似乎无法弄清楚如何使两个Shift键都用作Shift键。以下是左(功能正常)Shift键的 xev 输出:

KeyPress event, serial 36, synthetic NO, window 0x4000001,
    root 0x2ac, subw 0x0, time 58946313, (110,140), root:(140,225),
    state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x4000001,
    root 0x2ac, subw 0x0, time 58946553, (110,140), root:(140,225),
    state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Run Code Online (Sandbox Code Playgroud)

以及xev当我按下右键时的输出Shift

PropertyNotify event, serial 36, synthetic NO, window 0x4000001,
    atom 0x137 (_NET_WM_STATE), time 59049363, state PropertyNewValue

FocusOut event, serial 36, synthetic NO, window 0x4000001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 36, synthetic NO, window 0x4000001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
       0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
Run Code Online (Sandbox Code Playgroud)

如果重要的话,我会在 Gnome 和 Mate 之间轮流使用。

更新(几个小时后):我setxkbmap -print在我的笔记本电脑上运行,这是一个非常相似的配置(Ubuntu Vidid Beta - Gnome 版;没有安装 MATE),并且按键按Shift预期工作,并且输出看起来与其他机器。相当混乱。

2015 年 4 月 8 日更新:我退出 Gnome 并进入 MATE,问题就消失了。我没有将此作为 Launchpad bug 归档,因为我 100% 确定这是我在某处所做的事情,但我只是不知道是什么。我确实在 Launchpad 上进行了搜索,寻找任何似乎相关的东西,但什么也没有。我认为导致此类问题的软件包更新影响的不仅仅是我。

Sh1*_*d0w 2

在 ubuntu 中打开键盘首选项 >> Accessibilty

然后在粘滞键下选中“模拟同时按键”选项 - 并取消选中“如果同时按下两个键则禁用粘滞键”选项。

请告诉我这是否适合您。