一次击键如何创建 2 个 KeyPress 事件?

一次击键如何创建 2 个 KeyPress 事件?

不知何故,我的键盘上的某些键开始出现异常。最明显的是,在数字键盘上,我一次击键就能得到 2 个数字或一个数字和一个符号。在终端上使用命令 xev 后,发现某些键在一次击键中发生了 2 个事件。

这是我按下数字键盘上的“9”键所得到的结果的示例。

KeyPress event, serial 37, synthetic NO, window 0x2800001,
    root 0x789, subw 0x0, time 8174693, (1195,543), root:(1245,662),
    state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x2800001,
    root 0x789, subw 0x0, time 8174694, (1195,543), root:(1245,662),
    state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES,
    XLookupString gives 1 bytes: (39) "9"
    XmbLookupString gives 1 bytes: (39) "9"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x2800001,
    root 0x789, subw 0x0, time 8174912, (1195,543), root:(1245,662),
    state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x2800001,
    root 0x789, subw 0x0, time 8174923, (1195,543), root:(1245,662),
    state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES,
    XLookupString gives 1 bytes: (39) "9"
    XFilterEvent returns: False

此外,在白天,事件的组合会发生变化。我看不出有什么规律,但主要是数字键盘、箭头和特殊字符键出现了这个问题。在此之前我没有进行任何更新/升级。

我有一个 X11 驱动程序,并尝试重新安装它,但没有成功。我也不认为这是硬件问题。我该如何解决这个问题?或者至少,我的下一步应该是什么?

任何帮助将不胜感激!

相关内容