I have a key-press-event handler, and I need to determine what type of key was pressed: modifier or not?
This is not in event.state, because this field only works when the modifier was pressed with something else, but I need this for a single key (i.e. just by pressing the control button or alt, ...).
python user-interface gtk pygtk
Daniel
source share