![按一个键注册为两个单独的键](https://linux22.com/image/1196076/%E6%8C%89%E4%B8%80%E4%B8%AA%E9%94%AE%E6%B3%A8%E5%86%8C%E4%B8%BA%E4%B8%A4%E4%B8%AA%E5%8D%95%E7%8B%AC%E7%9A%84%E9%94%AE.png)
我的 Delete 键注册并删除和削减
当我xev
按下 Delete 键时,显示以下内容
root 0x7a6, subw 0x0, time 607462, (196,131), root:(368,295),
state 0x0, keycode 106 (keysym 0xffaf, KP_Divide), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XmbLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3400001,
root 0x7a6, subw 0x0, time 607624, (196,131), root:(368,295),
state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3400001,
root 0x7a6, subw 0x0, time 607635, (196,131), root:(368,295),
state 0x0, keycode 106 (keysym 0xffaf, KP_Divide), same_screen YES,
XLookupString gives 1 bytes: (2f) "/"
XFilterEvent returns: False
当我这样做sudo showkey
并按下删除键时,显示以下内容
^[[3~/keycode 111 press
keycode 98 press
keycode 111 release
keycode 98 release