]> Pileus Git - ~andy/gtk/commitdiff
Replace GDK_Tab and GDK_ISO_Left_Tab with GDK_KEY equivalents
authorJohn Ralls <jralls@ceridwen.fremont.ca.us>
Tue, 5 Oct 2010 23:18:25 +0000 (01:18 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 5 Oct 2010 23:20:29 +0000 (01:20 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631475

Signed-off-by: Javier Jardón <jjardon@gnome.org>
gdk/quartz/gdkkeys-quartz.c
gdk/x11/gdkkeys-x11.c

index 8d0200c1470d909f2a175a729fb64b172259fe31..a077bfa225d795cd504ca4b230c637a8d28217ec 100644 (file)
@@ -277,10 +277,10 @@ maybe_update_keymap (void)
                        }
                      
                      /* Special-case shift-tab since GTK+ expects
-                      * GDK_ISO_Left_Tab for that. 
+                      * GDK_KEY_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_KEY_Tab && modifiers[j] == shiftKey)
+                       p[j] = GDK_KEY_ISO_Left_Tab;
 
                      if (!found)
                         {
@@ -359,7 +359,7 @@ maybe_update_keymap (void)
                        }
 
                      /* Special-case shift-tab since GTK+ expects
-                      * GDK_ISO_Left_Tab for that.
+                      * GDK_KEY_ISO_Left_Tab for that.
                       */
                      if (found && p[j] == GDK_KEY_Tab && modifiers[j] == shiftKey)
                        p[j] = GDK_KEY_ISO_Left_Tab;
index e0a74143176845754469a37bc8467898dffd1d34..831c69f1d4f22ee0a98ae2b18e0c6ac686edecfc 100644 (file)
@@ -384,9 +384,9 @@ update_keymaps (GdkKeymapX11 *keymap_x11)
                                                &keymap_x11->keysyms_per_keycode);
 
 
-      /* GDK_ISO_Left_Tab, as usually configured through XKB, really messes
+      /* GDK_KEY_ISO_Left_Tab, as usually configured through XKB, really messes
        * up the whole idea of "consumed modifiers" because shift is consumed.
-       * However, <shift>Tab is not usually GDK_ISO_Left_Tab without XKB,
+       * However, <shift>Tab is not usually GDK_KEY_ISO_Left_Tab without XKB,
        * we we fudge the map here.
        */
       keycode = keymap_x11->min_keycode;