From 7dc629b4db4f240f39e52f465ea4db772da54f8e Mon Sep 17 00:00:00 2001 From: casey Date: Thu, 28 Jul 2016 19:14:58 -0700 Subject: [PATCH] Allow "KEY_ENTER" to exit command mode. Makes it a bit easier in some contexts. --- src/musikbox/app/layout/MainLayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/musikbox/app/layout/MainLayout.cpp b/src/musikbox/app/layout/MainLayout.cpp index f46266418..f95af0e8c 100755 --- a/src/musikbox/app/layout/MainLayout.cpp +++ b/src/musikbox/app/layout/MainLayout.cpp @@ -135,7 +135,8 @@ void MainLayout::SetMainLayout(std::shared_ptr layout) { bool MainLayout::KeyPress(const std::string& key) { if (prefs->GetBool(box::prefs::keys::EscFocusesShortcuts)) { if (key == "^[" || - (key == "KEY_UP" && this->shortcutsFocused)) + (key == "KEY_ENTER" && this->shortcutsFocused) || + (key == "KEY_UP" && this->shortcutsFocused)) { this->shortcutsFocused = !this->shortcutsFocused;