mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 14:38:08 +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();
|
auto selected = this->GetSelectedIndex();
|
||||||
if (selected != NO_SELECTION) {
|
if (selected != NO_SELECTION) {
|
||||||
this->OnEntryActivated(selected);
|
this->OnEntryActivated(selected);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (key == "M-enter") {
|
else if (key == "M-enter") {
|
||||||
auto selected = this->GetSelectedIndex();
|
auto selected = this->GetSelectedIndex();
|
||||||
if (selected != NO_SELECTION) {
|
if (selected != NO_SELECTION) {
|
||||||
this->OnEntryContextMenu(selected);
|
this->OnEntryContextMenu(selected);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ScrollableWindow::KeyPress(key);
|
return ScrollableWindow::KeyPress(key);
|
||||||
|
Loading…
Reference in New Issue
Block a user