Author: tkreuzer
Date: Wed Mar 28 08:06:21 2012
New Revision: 56255
URL:
http://svn.reactos.org/svn/reactos?rev=56255&view=rev
Log:
[REGEDIT]
Handle Ctrl-A in address bar.
Patch by Edijs Kolesnikovics (terminedijs at yahoo dot com)
See issue #5936 for more details.
Modified:
trunk/reactos/base/applications/regedit/main.c
Modified: trunk/reactos/base/applications/regedit/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/main.c [iso-8859-1] Wed Mar 28 08:06:21 2012
@@ -177,6 +177,16 @@
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);