tags:

views:

43

answers:

1

as in the title, it doesn't appear to generate an event unless another key/button is pressed at the same time. thanks, james

+5  A: 

Running xev and pressing shift gives me this:


KeyPress event, serial 34, synthetic NO, window 0x5a00001,
    root 0xf7, subw 0x0, time 1739516541, (174,173), root:(1021,367),
    state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x5a00001,
    root 0xf7, subw 0x0, time 1739516717, (174,173), root:(1021,367),
    state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

So yes, it is possible.

Nathon
damn, i just had another look at my event code and it was returning silently if XLookupString returned false (which it would for a modifier). thanks.
james edge