我得到了随机输入向上键导致浏览器和其他应用程序引起意外滚动。
我已经禁用了向上来自的密钥xmodmap
:
$ xmodmap -pke | grep -i up
keycode 80 = KP_Up KP_8 KP_Up KP_8
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp
keycode 206 = NoSymbol Super_L NoSymbol Super_L
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
$uname -a
Linux renegade 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
我使用捕获了输入sudo evtest
,并且可以c8
在几秒钟内多次使用扫描代码查看输入值。我该如何禁用此输入。
我正在使用戴尔笔记本电脑。
Event: time 1596356833.698079, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.698079, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.698079, -------------- SYN_REPORT ------------
Event: time 1596356833.729516, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.729516, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.729516, -------------- SYN_REPORT ------------
Event: time 1596356833.758025, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.758025, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.758025, -------------- SYN_REPORT ------------
Event: time 1596356833.789753, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.789753, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.789753, -------------- SYN_REPORT ------------
Event: time 1596356833.822339, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.822339, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.822339, -------------- SYN_REPORT ------------
Event: time 1596356833.853520, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.853520, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.853520, -------------- SYN_REPORT ------------
Event: time 1596356833.885129, type 4 (EV_MSC), code 4 (MSC_SCAN), value c8
Event: time 1596356833.885129, type 1 (EV_KEY), code 103 (KEY_UP), value 2
Event: time 1596356833.885129, -------------- SYN_REPORT ------------