![当我按下按钮 y 时,控制键被按下,并且 y 不是数字](https://linux22.com/image/1182792/%E5%BD%93%E6%88%91%E6%8C%89%E4%B8%8B%E6%8C%89%E9%92%AE%20y%20%E6%97%B6%EF%BC%8C%E6%8E%A7%E5%88%B6%E9%94%AE%E8%A2%AB%E6%8C%89%E4%B8%8B%EF%BC%8C%E5%B9%B6%E4%B8%94%20y%20%E4%B8%8D%E6%98%AF%E6%95%B0%E5%AD%97.png)
我正在使用 hp 246 g6 笔记本电脑,当我按下 y 键时,它显示我按下了 ctrl,如下面的 xev 日志所示
KeyPress event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418353, (310,105), root:(321,160),
state 0x4, keycode 29 (keysym 0x79, y), same_screen YES,
XLookupString gives 1 bytes: (19) ""
XmbLookupString gives 1 bytes: (19) ""
XFilterEvent returns: False
KeyRelease event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418438, (310,105), root:(321,160),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418443, (310,105), root:(321,160),
state 0x0, keycode 29 (keysym 0x79, y), same_screen YES,
XLookupString gives 1 bytes: (79) "y"
XFilterEvent returns: False
我尝试使用脚本进行更改,但错误仍然存在
xmodmap -e "keycode 29 = y"
答案1
我解决了这个问题,换键盘是因为电流坏了