forked from AuroraMiddleware/gtk
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:
parent
33aaf07648
commit
ab62fadd82
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user