mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Little addition to the modifiers example - Federico
This commit is contained in:
parent
9139e54dd3
commit
ef9c231705
@ -1137,7 +1137,10 @@ Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
|
||||
The following code shows how you should use GDK_MODIFIER_MASK to
|
||||
test for
|
||||
<keycombo><keycap>Control</keycap><keycap>F10</keycap></keycombo>
|
||||
being pressed.
|
||||
being pressed. If you do something like testing for
|
||||
<literal>event->state == GDK_CONTROL_MASK</literal>, your
|
||||
program will not work correctly if some other modifier is
|
||||
pressed, such as <keycap>NumLock</keycap>.
|
||||
</para>
|
||||
|
||||
<programlisting>
|
||||
|
Loading…
Reference in New Issue
Block a user