Como não tenho muitos dados, vou resumir isso.
Então eu comprei um teclado mecânico. Toda vez que eu pressiono F1, a janela é desfocada. F2 funciona.
Pressionando F1 em xev
:
FocusOut event, serial 48, synthetic NO, window 0x5400001,
mode NotifyGrab, detail NotifyAncestor
FocusOut event, serial 48, synthetic NO, window 0x5400001,
mode NotifyWhileGrabbed, detail NotifyNonlinear
FocusIn event, serial 48, synthetic NO, window 0x5400001,
mode NotifyWhileGrabbed, detail NotifyNonlinear
KeymapNotify event, serial 48, synthetic NO, window 0x0,
keys: 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusIn event, serial 48, synthetic NO, window 0x5400001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 48, synthetic NO, window 0x0,
keys: 3 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
Pressionando F2 em xev
:
KeyPress event, serial 48, synthetic NO, window 0x5400001,
root 0x290, subw 0x0, time 45947409, (234,268), root:(235,302),
state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 48, synthetic NO, window 0x5400001,
root 0x290, subw 0x0, time 45947546, (234,268), root:(235,302),
state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Portanto, praticamente xev
não reconhece a tecla F1, mas a F2 pode. Observe que, se eu pressionar +, ele reconhecerá isso como keycode 179 (keysym 0x1008ff81, XF86Tools)
. Então, talvez haja uma maneira de vincular XF86Tools
a F1
? Estou executando o Openbox. Verificado dconf-editor
para keybindings mas nada lá. Obrigado.
Edit1 : Então eu tentei vincular F1 a algo no Openbox. Só a F1 não funciona, a W-F1 funciona. Se eu abrir as configurações do teclado no XFCE, a F1 registra, mas não funciona.