Add tab stops in Function List

Add tab stops in Function List to switch between search field and list.

Fix 8665, close #8924
pull/8941/head
Vince 4 years ago committed by Don HO
parent 8516c7b48e
commit 80d98f05b2
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -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…
Cancel
Save