The International Simutrans Forum

Development => Bug Reports => Topic started by: Ashley on March 11, 2012, 09:02:30 AM

Title: Shift+Tab for window navigation
Post by: Ashley on March 11, 2012, 09:02:30 AM
In most GUIs pressing tab will take you to the next UI control. Simutrans implements this. Pressing shift+tab will take you to the previous one - which Simutrans doesn't implement.

I think this would be a good addition for the UI :)
Title: Re: Shift+Tab for window navigation
Post by: kierongreen on March 11, 2012, 09:53:02 AM
The code seems to already be there for this, investigating...
Title: Re: Shift+Tab for window navigation
Post by: kierongreen on March 11, 2012, 09:54:59 AM
Yes, this works at present here (svn 5547, Linux)...
Title: Re: Shift+Tab for window navigation
Post by: Ashley on March 11, 2012, 10:52:59 AM
Hm, ok it must be something peculiar to the Mac platform then, doesn't work either using my Quartz backend or the SDL one.
Title: Re: Shift+Tab for window navigation
Post by: kierongreen on March 11, 2012, 11:02:49 AM
Does shift work elsewhere in the game?
Title: Re: Shift+Tab for window navigation
Post by: Ashley on March 11, 2012, 11:57:37 AM
Yep!
Title: Re: Shift+Tab for window navigation
Post by: Ashley on March 25, 2012, 01:01:21 AM
I found the problem, on the Mac pressing Shift+Tab sends a special keystroke, NSBackTabCharacter (0x0019). I've fixed this for the Quartz backend by converting this into a SIM_KEY_TAB with the shift modifier set.