From 346affb027a9447d4ae4dca1adc648400097001b Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 10 Oct 2020 21:34:48 -0700 Subject: [PATCH] Fixed a bug in ListWindow's key handling propagation --- src/musikcube/cursespp/ListWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/musikcube/cursespp/ListWindow.cpp b/src/musikcube/cursespp/ListWindow.cpp index 29f56cbea..94aa14c99 100755 --- a/src/musikcube/cursespp/ListWindow.cpp +++ b/src/musikcube/cursespp/ListWindow.cpp @@ -300,12 +300,14 @@ bool ListWindow::KeyPress(const std::string& key) { auto selected = this->GetSelectedIndex(); if (selected != NO_SELECTION) { this->OnEntryActivated(selected); + return true; } } else if (key == "M-enter") { auto selected = this->GetSelectedIndex(); if (selected != NO_SELECTION) { this->OnEntryContextMenu(selected); + return true; } } return ScrollableWindow::KeyPress(key);