mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 14:24:58 +02:00
Add tab stops in Function List
Add tab stops in Function List to switch between search field and list. Fix 8665, close #8924
This commit is contained in:
parent
8516c7b48e
commit
80d98f05b2
@ -575,6 +575,10 @@ void FunctionListPanel::notified(LPNMHDR notification)
|
||||
}
|
||||
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||
}
|
||||
else if (ptvkd->wVKey == VK_TAB)
|
||||
{
|
||||
::SetFocus(_hSearchEdit);
|
||||
}
|
||||
else if (ptvkd->wVKey == VK_ESCAPE)
|
||||
{
|
||||
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
|
||||
@ -696,6 +700,11 @@ static LRESULT CALLBACK funclstSearchEditProc(HWND hwnd, UINT message, WPARAM wP
|
||||
::SendMessage(hwnd, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(TEXT("")));
|
||||
return FALSE;
|
||||
}
|
||||
else if (wParam == VK_TAB)
|
||||
{
|
||||
::SendMessage(GetParent(hwnd), WM_COMMAND, VK_TAB, 1);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
return oldFunclstSearchEditProc(hwnd, message, wParam, lParam);
|
||||
@ -842,6 +851,14 @@ INT_PTR CALLBACK FunctionListPanel::run_dlgProc(UINT message, WPARAM wParam, LPA
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (wParam == VK_TAB)
|
||||
{
|
||||
if (_treeViewSearchResult.isVisible())
|
||||
::SetFocus(_treeViewSearchResult.getHSelf());
|
||||
else
|
||||
::SetFocus(_treeView.getHSelf());
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
switch (LOWORD(wParam))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user