Skip to content

Commit

Permalink
Use stock window ID for Search
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Aug 6, 2024
1 parent 87b3e8b commit f0ad069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ enum {
A_CUSTCOL,
A_COLCELL,
A_SORT,
A_SEARCHF,
A_MAKEBAKS,
A_TOTRAY,
A_AUTOSAVE,
Expand Down
4 changes: 2 additions & 2 deletions src/myframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ struct MyFrame : wxFrame {
}

wxMenu *semenu = new wxMenu();
MyAppend(semenu, A_SEARCHF, _(L"&Search\tCTRL+f"));
MyAppend(semenu, wxID_FIND, _(L"&Search\tCTRL+f"));
semenu->AppendCheckItem(A_CASESENSITIVESEARCH, _(L"Case-sensitive search"));
semenu->Check(A_CASESENSITIVESEARCH, sys->casesensitivesearch);
MyAppend(semenu, A_SEARCHNEXT, _(L"&Go To Next Search Result\tF3"));
Expand Down Expand Up @@ -976,7 +976,7 @@ struct MyFrame : wxFrame {
ShowFullScreen(!IsFullScreen());
if (IsFullScreen()) sw->Status(_(L"Press F11 to exit fullscreen mode."));
break;
case A_SEARCHF:
case wxID_FIND:
if (filter) {
filter->SetFocus();
filter->SetSelection(0, 1000);
Expand Down

0 comments on commit f0ad069

Please sign in to comment.