The problem with this situation is that if i remap a given button (using xbindkeys) also the associated key on the keyboard gets remapped. There should be a way to distinguish both presses.
By testing with xev I realized that the keypad of the Naga and the number keys of the keyboard are practically the same. The only difference is in the "serial" field, as I show next.
This is the output of xev for the keyboard when pressing the key associated with the number 1.
Code: Select all
KeyPress event, serial 40, synthetic NO, window 0x3800001,
root 0xb1, subw 0x3800002, time 44155357, (48,31), root:(1148,438),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XmbLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False
KeyRelease event, serial 40, synthetic NO, window 0x3800001,
root 0xb1, subw 0x3800002, time 44155435, (48,31), root:(1148,438),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: FalseCode: Select all
KeyPress event, serial 40, synthetic NO, window 0x3800001,
root 0xb1, subw 0x0, time 44319985, (131,78), root:(1231,485),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XmbLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: False
KeyRelease event, serial 41, synthetic NO, window 0x3800001,
root 0xb1, subw 0x0, time 44320138, (131,78), root:(1231,485),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 bytes: (31) "1"
XFilterEvent returns: FalseI have no hope to solve this issue, but I decided to post in the forum to ask for help.


