News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

Shift+Tab for window navigation

Started by Ashley, March 11, 2012, 09:02:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ashley

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 :)
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

kierongreen

The code seems to already be there for this, investigating...

kierongreen

Yes, this works at present here (svn 5547, Linux)...

Ashley

Hm, ok it must be something peculiar to the Mac platform then, doesn't work either using my Quartz backend or the SDL one.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

kierongreen

Does shift work elsewhere in the game?

Ashley

Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

Ashley

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.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.