Ensure a double click focuses the active ListWindow, just like a single

click!
This commit is contained in:
casey langen 2018-05-28 14:50:04 -07:00
parent e81fc57f1d
commit 9e410eb739

View File

@ -312,6 +312,7 @@ bool ListWindow::MouseEvent(const IMouseHandler::Event& event) {
this->SetSelectedIndex(offset); this->SetSelectedIndex(offset);
} }
else if (event.Button1DoubleClicked()) { else if (event.Button1DoubleClicked()) {
this->FocusInParent();
this->SetSelectedIndex(offset); this->SetSelectedIndex(offset);
this->OnEntryActivated(offset); /* internal */ this->OnEntryActivated(offset); /* internal */
} }