The International Simutrans Forum

Development => Extension Requests => Topic started by: Aquin on September 09, 2013, 12:57:44 PM

Title: Close Map/Help/List-Windows with key
Post by: Aquin on September 09, 2013, 12:57:44 PM
It would be nice if a key like "m" would
- open the map if it is closed
- restore the map if it is minimized
- close the map if it is opened

where map is exemplary for any window that can be opened by a key.
Title: Re: Close Map/Help/List-Windows with key
Post by: Sarlock on September 09, 2013, 02:39:57 PM
That would be nice if M closed the map again after it's open... I am constantly hitting M expecting it to close and it doesn't :)
Title: Re: Close Map/Help/List-Windows with key
Post by: Carl on September 09, 2013, 02:44:09 PM
I just use backspace to close windows. Of course, this closes all windows, but those you want to keep open can be "pinned" to prevent closure.
Title: Re: Close Map/Help/List-Windows with key
Post by: Ters on September 09, 2013, 04:14:58 PM
I constantly open the help window by pressing the wrong key, but I don't suppose pressing a random key should close it as well.
Title: Re: Close Map/Help/List-Windows with key
Post by: ӔO on September 09, 2013, 06:03:22 PM
esc and delete will close the focused window, while backspace closes all windows, except pinned.
Title: Re: Close Map/Help/List-Windows with key
Post by: prissi on September 09, 2013, 08:05:34 PM
Wasn't recent a function added to close dialogues upon calling them a second time. This should work for keybindings too.
Title: Re: Close Map/Help/List-Windows with key
Post by: An_dz on September 10, 2013, 01:47:53 PM
You can right-click the toolbar button and it closes too.