mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Remove beep while ESC & TAB keystroke in Function list
This commit is contained in:
parent
fc470152e1
commit
c94f84000b
@ -562,7 +562,7 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
||||
break;
|
||||
|
||||
case NM_RETURN:
|
||||
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1);
|
||||
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
|
||||
break;
|
||||
|
||||
case TVN_KEYDOWN:
|
||||
@ -582,9 +582,11 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
||||
else if (ptvkd->wVKey == VK_TAB)
|
||||
{
|
||||
::SetFocus(_hSearchEdit);
|
||||
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
|
||||
}
|
||||
else if (ptvkd->wVKey == VK_ESCAPE)
|
||||
{
|
||||
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1); // remove beep
|
||||
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user