![左“CTRL”键的按键映射问题](https://linux22.com/image/1191301/%E5%B7%A6%E2%80%9CCTRL%E2%80%9D%E9%94%AE%E7%9A%84%E6%8C%89%E9%94%AE%E6%98%A0%E5%B0%84%E9%97%AE%E9%A2%98.png)
我的左 CTRL 键适用于某些应用程序,但不适用于其他应用程序。 我做了一个‘xev’ 检查一下并得到了一个奇怪的结果。
耶夫
正确的ctrl按键适用于所有应用程序
KeyPress event, serial 38, synthetic NO, window 0x2000001,
root 0x179, subw 0x0, time 120780392, (246,-446), root:(301,352),
state 0x10, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x2000001,
root 0x179, subw 0x0, time 120780545, (246,-446), root:(301,352),
state 0x14, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
左键ctrl在某些应用程序上存在问题
FocusOut event, serial 38, synthetic NO, window 0x2000001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 38, synthetic NO, window 0x2000001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 38, synthetic NO, window 0x0,
keys: 4294967211 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
这是怎么回事?有办法解决吗?我只是想让左边ctrl表现得“正常”。
我的系统统计信息:
cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
cat /proc/version
Linux version 5.15.0-56-generic (buildd@lcy02-amd64-102) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022
更新:
我创建了一个新的用户帐户在同一台机器上运行軍再次测试。 左键ctrl似乎有效。使用新用户的工作输出如下。
问题是我如何在我的主登录用户中解决这个问题?
KeyPress event, serial 37, synthetic NO, window 0xe00001,
root 0x179, subw 0x0, time 123177372, (157,-76), root:(418,498),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0xe00001,
root 0x179, subw 0x0, time 123177509, (157,-76), root:(418,498),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
问题是我如何在我的主登录用户中解决这个问题?