Little addition to the modifiers example - Federico

This commit is contained in:
Federico Mena Quintero 2004-02-16 18:22:24 +00:00
parent 9139e54dd3
commit ef9c231705

View File

@ -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-&gt;state == GDK_CONTROL_MASK</literal>, your
program will not work correctly if some other modifier is
pressed, such as <keycap>NumLock</keycap>.
</para>
<programlisting>