Re: Catching keys combinations
- From: Paul Davis <pbd Op Net>
- To: Fl vio Alberto Lopes Soares <engenharia3 maqplas com br>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Catching keys combinations
- Date: Fri, 01 Feb 2002 11:29:08 -0500
>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]