diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-09 22:50:15 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-09 22:50:15 +0000 |
commit | 03aea1a3dafc64212ac6ef68a9ea19f34fc09aa8 (patch) | |
tree | 207fcfae31aeb1a54e2c00d0436beeeb52549c05 /gdk/gdkevents.h | |
parent | e42a88049310ea064129b13ad0b394fd66ce6dc4 (diff) | |
download | gtk+-03aea1a3dafc64212ac6ef68a9ea19f34fc09aa8.tar.gz |
Make it possible to determine if a key event is for a modifier key:
2005-09-09 Matthias Clasen <mclasen@redhat.com>
Make it possible to determine if a key event is for a
modifier key:
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier):
New function to determine if a keycode is mapped to a modifier.
(get_xkb): Get the modmap.
* gdk/x11/gdkevents-x11.c (translate_key_event): Set the
is_modifier bit by calling _gdk_keymap_key_is_modifier().
* gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
bit.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 23231e5423..6c5ea277dc 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -342,6 +342,7 @@ struct _GdkEventKey gchar *string; guint16 hardware_keycode; guint8 group; + guint is_modifier : 1; }; struct _GdkEventCrossing |