mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
ESC key clears function list filter & search result
Even the focus is not on filter field but on one of tree view entries. Fix #11063, close #11064
This commit is contained in:
parent
2b99372169
commit
fcfa034cc5
@ -608,6 +608,7 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
|||||||
}
|
}
|
||||||
else if (ptvkd->wVKey == VK_ESCAPE)
|
else if (ptvkd->wVKey == VK_ESCAPE)
|
||||||
{
|
{
|
||||||
|
::SendMessage(_hSearchEdit, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(TEXT("")));
|
||||||
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
|
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
|
||||||
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user