Fudge keymap to have lower upper case variants if there is only a single

* 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)
This commit is contained in:
Padraig O'Briain 2002-03-15 10:06:02 +00:00
parent 33aaf07648
commit ab62fadd82
8 changed files with 60 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@ -167,6 +167,24 @@ update_keymaps (void)
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;
}