screen_switcher between current and last screen
Setting the new config variable "screen_switcher_browser_only" to "no" will make the "key_screen_switcher" key switch between the current and the last used screen, sort of like the Alt+Tab window switching mechanism in many window managers. This (intendedly) works only for the "main" screens (playlist, browser, media library, etc.) and not for info/lyrics/server info. Those screens can be closed with the screen_switcher key, but the will not be remembered. indentation correction in config
This commit is contained in:
committed by
Andrzej Rybczak
parent
64f64895ac
commit
b504b346af
@@ -55,6 +55,8 @@ void Help::SwitchTo()
|
||||
if (hasToBeResized)
|
||||
Resize();
|
||||
|
||||
if (myScreen != this && myScreen->isTabbable())
|
||||
myPrevScreen = myScreen;
|
||||
myScreen = this;
|
||||
RedrawHeader = 1;
|
||||
|
||||
@@ -133,7 +135,10 @@ void Help::GetKeybindings()
|
||||
*w << DisplayKeys(Key.Home) << "Home\n";
|
||||
*w << DisplayKeys(Key.End) << "End\n";
|
||||
*w << "\n";
|
||||
*w << DisplayKeys(Key.ScreenSwitcher) << "Switch between playlist and browser\n";
|
||||
if (Config.screen_switcher_browser_only)
|
||||
*w << DisplayKeys(Key.ScreenSwitcher) << "Switch between playlist and browser\n";
|
||||
else
|
||||
*w << DisplayKeys(Key.ScreenSwitcher) << "Switch between current and last screen\n";
|
||||
*w << DisplayKeys(Key.Help) << "Help screen\n";
|
||||
*w << DisplayKeys(Key.Playlist) << "Playlist screen\n";
|
||||
*w << DisplayKeys(Key.Browser) << "Browse screen\n";
|
||||
|
||||
Reference in New Issue
Block a user