Xfce
為什麼對暫停/中斷鍵的按鍵沒有達到“xev”?
我正在執行 xfce,據我所知,暫停鍵未映射為熱鍵。當按下暫停鍵時,它只會產生:
FocusOut event, serial 37, synthetic NO, window 0x3000001, mode NotifyGrab, detail NotifyAncestor FocusOut event, serial 37, synthetic NO, window 0x3000001, mode NotifyUngrab, detail NotifyPointer FocusIn event, serial 37, synthetic NO, window 0x3000001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 37, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
如果我將暫停鍵重新映射到完全不同的東西也沒關係,例如:
key <PAUS> { // type= "PC_CONTROL_LEVEL2", symbols[Group1]= [ p, Break ] };
如果我按 Shift+Pause 我會得到響應:
KeyPress event, serial 37, synthetic NO, window 0x3000001, root 0x1ef, subw 0x0, time 679325549, (37,115), root:(1228,774), state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 37, synthetic NO, window 0x3000001, root 0x1ef, subw 0x0, time 679325877, (37,115), root:(1228,774), state 0x1, keycode 127 (keysym 0xff6b, Break), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x3000001, root 0x1ef, subw 0x0, time 679325901, (37,115), root:(1228,774), state 0x1, keycode 127 (keysym 0xff6b, Break), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 37, synthetic NO, window 0x3000001, root 0x1ef, subw 0x0, time 679326061, (37,115), root:(1228,774), state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
為什麼未移位的暫停鍵達不到 xev?
FocusIn
和事件表明FocusOut
其他應用程序(可能是視窗管理器,可能是桌面的其他部分,可能是完全不同的應用程序)正在竊取這些事件,因為它已經向 X 伺服器註冊了對這些特定鍵的興趣。因此,雖然它們可能不會在 xfce 中“映射為熱鍵”,但某些應用程序仍會嘗試對它們做出反應。
調試此問題的明顯方法是停止/終止應用程序,直到您再次在
xev
. 的輸出xlsclients
應該有助於找出候選人。