]> Pileus Git - ~andy/gtk/commitdiff
Make shift tab work with unicode layouts (e.g. all Leopard layouts), fixes
authorRichard Hult <richard@imendio.com>
Sun, 4 Nov 2007 18:11:22 +0000 (18:11 +0000)
committerRichard Hult <rhult@src.gnome.org>
Sun, 4 Nov 2007 18:11:22 +0000 (18:11 +0000)
2007-11-04  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Make shift
tab work with unicode layouts (e.g. all Leopard layouts), fixes
bug #493404.

svn path=/trunk/; revision=18967

ChangeLog
gdk/quartz/gdkkeys-quartz.c

index 9b8a532c9d1e5d82eaec5f71ea2d85812cec7296..6d207cf92fe5572a51fbcb6ffda0631a8ef8696d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-04  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Make shift
+       tab work with unicode layouts (e.g. all Leopard layouts), fixes
+       bug #493404.
+
 2007-11-03  Richard Hult  <richard@imendio.com>
 
        * gtk/gtkclipboard-quartz.c: (clipboard_owner_destroyed),
index dd8b63e2927f4bd39b68824f237ca62918451b52..7a2448b50d6fd8dd75bb0a60a3ca0c08cd08030a 100644 (file)
@@ -322,6 +322,12 @@ maybe_update_keymap (void)
                              break;
                            }
                        }
+
+                     /* Special-case shift-tab since GTK+ expects
+                      * GDK_ISO_Left_Tab for that.
+                      */
+                     if (found && p[j] == GDK_Tab && modifiers[j] == shiftKey)
+                       p[j] = GDK_ISO_Left_Tab;
                      
                      if (!found)
                        p[j] = gdk_unicode_to_keyval (uc);