Solución:
1. Ejecutar en una consola el comando xev:
xev
2. Sobre el cuadro que aparece en pantalla presionar la tecla/botón que quiero identificar.
3. Observar el mensaje por consola que genera la tecla presionada, ej:
Hice clic con el botón izquierdo del mouse:
ButtonRelease event, serial 40, synthetic NO, window 0x2e00001,
root 0x2d5, subw 0x0, time 23507683, (60,108), root:(1126,160),
state 0x110, button 1, same_screen YES
Presioné el Control Izquierdo del teclado:
KeyRelease event, serial 40, synthetic NO, window 0x2e00001,
root 0x2d5, subw 0x0, time 23506815, (60,108), root:(1126,160),
state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
No hay comentarios:
Publicar un comentario