mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-04 08:42:07 +00:00
Allow "KEY_ENTER" to exit command mode. Makes it a bit easier in some contexts.
This commit is contained in:
parent
52843d1b82
commit
7dc629b4db
@ -135,7 +135,8 @@ void MainLayout::SetMainLayout(std::shared_ptr<cursespp::LayoutBase> 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user