Fixed a bug in ListWindow's key handling propagation

This commit is contained in:
casey langen 2020-10-10 21:34:48 -07:00
parent e966b36b24
commit 346affb027

View File

@ -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);