From 8f0484caf3e413cd3e28590f8a4e1c11e10f6c39 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 19 Nov 2024 02:52:48 +0100 Subject: [PATCH] Fix Ctrl-C not doing copy from Search result issue (part 2) Fix using F7 to switch in Search results not working with Ctrl-C issue. Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15739#issuecomment-2481400295 --- PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index fb7a9fc12..84246b11b 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -5633,6 +5633,12 @@ intptr_t CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam { case WM_COMMAND : { + if (HIWORD(wParam) == SCEN_SETFOCUS) + { + ::SendMessage(_hParent, NPPM_INTERNAL_CHECKUNDOREDOSTATE, 0, 0); + return TRUE; + } + switch (wParam) { case NPPM_INTERNAL_FINDINFINDERDLG: