升级到 14.04(从 12.04)后,图形系统上的向下箭头不再正常工作。在控制台上,该键可以正常工作,但在终端上(在 X 内)则不行。不幸的是,我在互联网上搜索时没有找到答案,也许我找错了标签/关键词。不过,我找到了一些提示来检查按钮行为xev
。左、上、右和下的键序列结果显示如下:
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 141793, (-397,1002), root:(390,1054),
state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 141974, (-397,1002), root:(390,1054),
state 0x0, keycode 113 (keysym 0xff51, Left), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 142807, (-397,1002), root:(390,1054),
state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 142949, (-397,1002), root:(390,1054),
state 0x0, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 149744, (-397,1002), root:(390,1054),
state 0x0, keycode 114 (keysym 0xff53, Right), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 149895, (-397,1002), root:(390,1054),
state 0x0, keycode 114 (keysym 0xff53, Right), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 37, synthetic NO, window 0x3800001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3800001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967171 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0x283, subw 0x0, time 150559, (-397,1002), root:(390,1054),
state 0x0, keycode 116 (keysym 0xff54, Down), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
如您所见,向下箭头的行为不同,但有人知道如何修复它吗?
答案1
不知何故,向下的箭头键被设置为“显示桌面”。
弄清楚了这一点后,我就可以取消它了。
对于那些遇到类似问题的人来说,你可能会发现这个页面很有帮助:https://wiki.ubuntu.com/Keybindings。至少它解决了我的问题。