Re: Catching keys combinations



>I need to catch key combinations (ex.: CTRL + X + any key) , my
>application windows are connected with the key_press_event, but I view
>only 1 key press in moment, what I do ?

if i understand your question (which i am not confident about), then
you must keep track of keys yourself. modifier keys known to the X
server will change the "state" field of a GdkEventKey. in general,
keys like "ctrl" and "alt" are set up as modifier keys. the "X" key
will not be. so, you need to create a data structure to track which
keys are "down", and modify your action according to its state.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]