Fix enter handling on mac

This commit is contained in:
Charles J. Cliffe 2020-06-22 23:26:04 -04:00
parent c5652be141
commit 50f2bb18eb

View File

@ -1171,8 +1171,6 @@ void BookmarkView::onLabelKillFocus(wxFocusEvent &event) {
wxCommandEvent dummyEvt;
onLabelText(dummyEvt);
if (!m_treeView->HasFocus()) { m_treeView->SetFocus(); }
}
void BookmarkView::onLabelText( wxCommandEvent& /* event */ ) {
@ -1205,6 +1203,8 @@ void BookmarkView::onLabelText( wxCommandEvent& /* event */ ) {
}
}
}
if (!m_treeView->HasFocus()) { m_treeView->SetFocus(); }
}