mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 00:17:49 +00:00
Fixed a bug in ListWindow's key handling propagation
This commit is contained in:
parent
e966b36b24
commit
346affb027
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user