与标题中一样,除非同时按下另一个键/按钮,否则它似乎不会生成事件。谢谢, 詹姆斯
答案 0 :(得分:5)
运行xev并按shift给我这个:
KeyPress event, serial 34, synthetic NO, window 0x5a00001, root 0xf7, subw 0x0, time 1739516541, (174,173), root:(1021,367), state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 34, synthetic NO, window 0x5a00001, root 0xf7, subw 0x0, time 1739516717, (174,173), root:(1021,367), state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
是的,这是可能的。