Jump to content

Blacklisting some keycodes


trustin

Recommended Posts

Would it be possible to blacklist some keycodes so that certain key eventss are not sent to the remote machines?

Why? I have 'Creative Sound Blaster X7' connected to the local machine. When I turn its volume knob, it generates some keyboard events like volume up/down and mute. Such events should not be sent to the remote machines because they will change the volumes of the remote machines, which may not be the desired behavior.

Link to comment
Share on other sites

Here's the Xev output for the volume knob events:

KeyRelease event, serial 49, synthetic NO, window 0x4200001,
    root 0xdc, subw 0x0, time 36973126, (66,88), root:(67,891),
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 49, synthetic NO, window 0x4200001,
    root 0xdc, subw 0x0, time 36980247, (66,88), root:(67,891),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 49, synthetic NO, window 0x4200001,
    root 0xdc, subw 0x0, time 36983987, (66,88), root:(67,891),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...