From eb7abab27b5bbfaec70d8ab5c1dad62d9d199347 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 6 Sep 2005 18:45:50 +0000 Subject: [PATCH] Document new modifier bits. --- docs/reference/ChangeLog | 4 ++++ docs/reference/gdk/tmpl/windows.sgml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 0045e209a4..1efbc6b606 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2005-09-06 Matthias Clasen + + * gdk/tmpl/windows.sgml: Document new modifier bits. + 2005-09-05 Matthias Clasen * gtk/tmpl/gtkpaned.sgml: Fix some typos. diff --git a/docs/reference/gdk/tmpl/windows.sgml b/docs/reference/gdk/tmpl/windows.sgml index 2527968718..6a49e718d7 100644 --- a/docs/reference/gdk/tmpl/windows.sgml +++ b/docs/reference/gdk/tmpl/windows.sgml @@ -1164,6 +1164,11 @@ Hyper, Alt, Compose, Apple, CapsLock or ShiftLock. Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons. + +Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped +to Mod2 - Mod5, and indicates this by setting %GDK_SUPER_MASK, %GDK_HYPER_MASK +or %GDK_META_MASK in the state field of key events. + @GDK_SHIFT_MASK: the Shift key. @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the @@ -1185,6 +1190,9 @@ Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons. @GDK_BUTTON3_MASK: the third mouse button. @GDK_BUTTON4_MASK: the fourth mouse button. @GDK_BUTTON5_MASK: the fifth mouse button. +@GDK_SUPER_MASK: the Super modifier. Since 2.10 +@GDK_HYPER_MASK: the Hyper modifier. Since 2.10 +@GDK_META_MASK: the Meta modifier. Since 2.10 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate between (keyval, modifiers) pairs from key press and release events. @GDK_MODIFIER_MASK: a mask covering all modifier types.