当我通过键盘启用 NumLock 时,所有 Alt_L 快捷键(例如 Firefox 中的 Alt_L + Arrow_L)根本就不会执行。
当使用 xev 时,它显示当 NumLock 处于活动状态时 Alt_L 会导致焦点丢失。
KeyPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x13e, subw 0x0, time 3586896, (1116,872), root:(1253,1037),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x13e, subw 0x0, time 3587010, (1116,872), root:(1253,1037),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x13e, subw 0x0, time 3589052, (1116,872), root:(1253,1037),
state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x13e, subw 0x0, time 3589157, (1116,872), root:(1253,1037),
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 96 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
FocusOut event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyNormal, detail NotifyNonlinear
眼镜:
OS: Ubuntu 17.10 x86_64
Host: 20FH002RGE ThinkPad T560
Kernel: 4.13.0-16-generic
Resolution: 2880x1620
DE: ubuntu:GNOME
WM: GNOME Shell
WM Theme: Adwaita
Terminal: gnome-terminal
Keyboard layout: German
有什么方法可以改变这种行为,以便我可以同时使用 NumLock 和 Alt_L?