mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[REGEDIT]
Handle Ctrl-A in address bar. Patch by Edijs Kolesnikovics (terminedijs at yahoo dot com) See issue #5936 for more details. svn path=/trunk/; revision=56255
This commit is contained in:
parent
9968addfa4
commit
e134d9ffca
1 changed files with 10 additions and 0 deletions
|
@ -177,6 +177,16 @@ void ExitInstance(HINSTANCE hInstance)
|
|||
BOOL TranslateChildTabMessage(MSG *msg)
|
||||
{
|
||||
if (msg->message != WM_KEYDOWN) return FALSE;
|
||||
|
||||
/* Allow Ctrl+A on address bar */
|
||||
if ((msg->hwnd == g_pChildWnd->hAddressBarWnd) &&
|
||||
(msg->message == WM_KEYDOWN) &&
|
||||
(msg->wParam == 'A') && (GetKeyState(VK_CONTROL) < 0))
|
||||
{
|
||||
SendMessage(msg->hwnd, EM_SETSEL, 0, -1);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (msg->wParam != VK_TAB) return FALSE;
|
||||
if (GetParent(msg->hwnd) != g_pChildWnd->hWnd) return FALSE;
|
||||
PostMessage(g_pChildWnd->hWnd, WM_COMMAND, ID_SWITCH_PANELS, 0);
|
||||
|
|
Loading…
Reference in a new issue