hide history with ESC

This commit is contained in:
brunoherbelin
2021-03-20 13:01:00 +01:00
parent 71891292b4
commit 4e83cdf30f

View File

@@ -372,9 +372,10 @@ void UserInterface::handleKeyboard()
else if (navigator.pannelVisible()) else if (navigator.pannelVisible())
navigator.hidePannel(); navigator.hidePannel();
// 3. hide windows // 3. hide windows
else if (Settings::application.widget.preview || Settings::application.widget.media_player) { else if (Settings::application.widget.preview || Settings::application.widget.media_player || Settings::application.widget.history) {
Settings::application.widget.preview = false; Settings::application.widget.preview = false;
Settings::application.widget.media_player = false; Settings::application.widget.media_player = false;
Settings::application.widget.history = false;
} }
// 4. cancel selection // 4. cancel selection
else if (!Mixer::selection().empty()) { else if (!Mixer::selection().empty()) {