[Gtkradiant] [Bug 924] startup warning, no menu item found for CenterXYView

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Sun, 30 Nov 2003 07:35:08 -0600


------- Additional Comments From wjoseph@europe.ea.com  2003-11-30 07:35 -------
the GDK_ISO_Left_Tab is a gtk2 thing. When shift is held down, pressing tab 
emits a different keycode. However, the user doesn't distinguish between two 
different tab keys, so there should not be an extra tab key in g_Keys.
Tab is a special key that is handled differently to other shortcuts - because 
it's reserved for the OS to use to change focus between GUI elements - so it's 
always handled specially by mainframe_keypress. The simplest workaround for 
the "two tab keys" gtk quirk is to convert both tab keycodes to the same 
keycode in mainframe_keypress:

  guint keyval = gdk_keyval_to_upper(keyval);
  if(keyval == GDK_ISO_Left_Tab)
    keyval = GDK_Tab;