在升级到 Xubuntu 22.04 之前,我会点击左侧的 Windows 键 (Super L),它将打开 xfce 中的 Whisker 菜单。升级后,每当我按下同一个键时,就好像我快速连续输入两次一样。我相信这是因为我有一些映射该键的东西。当我运行时,xev -event keyboard
我得到两个 Windows 键的以下信息:
右 Windows 键
KeyPress event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484880404, (423,18), root:(1294,553),
state 0x10, keycode 134 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484880476, (423,18), root:(1294,553),
state 0x50, keycode 134 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
左 Windows 键
KeyPress event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907025, (518,-23), root:(1389,512),
state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907129, (518,-23), root:(1389,512),
state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
MappingNotify event, serial 28, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907129, (518,-23), root:(1389,512),
state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907130, (518,-23), root:(1389,512),
state 0x14, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907130, (518,-23), root:(1389,512),
state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x6a00001,
root 0x1df, subw 0x0, time 484907130, (518,-23), root:(1389,512),
state 0x10, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
当我运行时xmodmap
,我得到以下输出:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
然而,我确实不是有一个~/.Xmodmap
文件。我确实有一个~/.Xauthority
文件,但它看起来是二进制/不透明的。
我认为需要通过xmodmap
(或可能setxkbmap
)取消设置某些内容,但我不知道那会是什么。