Skip to content

Commit

Permalink
Get rid of Focus check entirely (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Oct 16, 2023
1 parent 702f242 commit b294b11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/myevents.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BEGIN_EVENT_TABLE(treesheets::MyFrame, wxFrame)
EVT_TEXT_ENTER(A_REPLACE, treesheets::MyFrame::OnSearchReplaceEnter)
EVT_CLOSE(treesheets::MyFrame::OnClosing)
EVT_MAXIMIZE(treesheets::MyFrame::OnMaximize)
EVT_ACTIVATE(treesheets::MyFrame::OnActivate)
EVT_ACTIVATE_APP(treesheets::MyFrame::OnActivate)
EVT_COMBOBOX(A_CELLCOLOR, treesheets::MyFrame::OnChangeColor)
EVT_COMBOBOX(A_TEXTCOLOR, treesheets::MyFrame::OnChangeColor)
EVT_COMBOBOX(A_BORDCOLOR, treesheets::MyFrame::OnChangeColor)
Expand Down
3 changes: 0 additions & 3 deletions src/myframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,6 @@ struct MyFrame : wxFrame {
void OnActivate(wxActivateEvent &ae) {
// This causes warnings in the debug log, but without it keyboard entry upon window select
// doesn't work.
#ifdef __WXGTK__
if (HasFocus())
#endif
ReFocus();
}

Expand Down

0 comments on commit b294b11

Please sign in to comment.