[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:
Timo Kreuzer 2012-03-28 08:06:21 +00:00
parent 9968addfa4
commit e134d9ffca

View file

@ -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);