]> Pileus Git - ~andy/gtk/commitdiff
Fudge keymap to have lower upper case variants if there is only a single
authorPadraig O'Briain <padraigo@src.gnome.org>
Fri, 15 Mar 2002 10:06:02 +0000 (10:06 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Fri, 15 Mar 2002 10:06:02 +0000 (10:06 +0000)
* gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
upper case variants if there is only a single keysym per keycode and
the key symbol has upper and lower case variants (#74512)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkkeys-x11.c

index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index a8e2d36282bb20a5623922b25f90c539db7edc63..b84b2e192ffe065edf28a541a115e6c046afd261 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
+
+       * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
+       upper case variants if there is only a single keysym per keycode and
+       the key symbol has upper and lower case variants (#74512)
+
 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
index f80b742abb59439e4a9d31315c43510f35bfea5e..c499d9620be9b2b05e69539e8569cd653badb21d 100644 (file)
@@ -166,6 +166,24 @@ update_keymaps (void)
              if (syms[KEYSYM_INDEX (i, 0)] == GDK_Tab)
                syms[KEYSYM_INDEX (i, 1)] = GDK_ISO_Left_Tab;
            }
+
+          /*
+           * If there is one keysym and the key symbol has upper and lower
+           * case variants fudge the keymap
+           */
+          if (syms[KEYSYM_INDEX (0, 1)] == 0)
+            {
+              guint lower;
+              guint upper;
+
+              gdk_keyval_convert_case (syms[KEYSYM_INDEX (0, 0)], &lower, &upper);
+              if (lower != upper)
+                {
+                  syms[KEYSYM_INDEX (0, 0)] = lower;
+                  syms[KEYSYM_INDEX (0, 1)] = upper;
+                }
+            }
+      
           
           ++keycode;
         }