由于某种原因,我的左 Alt 键会触发退出。我已使用以下命令确认了这一点xev
:
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0xf6, subw 0x0, time 299729, (1524,198), root:(1526,318),
state 0x10, keycode 64 (keysym 0xff1b, Escape), same_screen YES,
XKeysymToKeycode returns keycode: 9
XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0xf6, subw 0x0, time 299875, (1524,198), root:(1526,318),
state 0x18, keycode 64 (keysym 0xff1b, Escape), same_screen YES,
XKeysymToKeycode returns keycode: 9
XLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
他们检测到的键码是 64,根据。但是,键符显示为/usr/share/X11/xkb/keycodes/evdev
。有什么想法可以解决此问题吗?我正在运行 Arch Linux。LALT
Escape
编辑:的输出setxkbmap -print
是:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+us:2+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
答案1
我最终还是放弃了,从一个新的 .config 目录开始,问题就解决了。这个问题可能与 Gnome 有关,但我不确定。