[EXPLORER_NEW]

- Open run dialog when Win+R was pressed. Patch by Edijs Kolesnikovičs.
CORE-6863 #resolve

svn path=/trunk/; revision=58127
This commit is contained in:
Thomas Faber 2013-01-06 12:04:48 +00:00
parent d655fccbd2
commit 40d30b8b21
3 changed files with 13 additions and 0 deletions

View file

@ -411,6 +411,7 @@ _tWinMain(IN HINSTANCE hInstance,
if (Tray != NULL)
{
RegisterHotKey(NULL, IDHK_RUN, MOD_WIN, 'R');
TrayMessageLoop(Tray);
ITrayWindow_Release(Tray);
UnregisterTrayWindowClass();

View file

@ -128,6 +128,8 @@ CreateDropTarget(IN HWND hwndTarget,
* explorer.c
*/
#define IDHK_RUN 1 /* Win+R */
LONG
SetWindowStyle(IN HWND hWnd,
IN LONG dwStyleMask,

View file

@ -2777,6 +2777,16 @@ TrayMessageLoop(IN OUT ITrayWindow *Tray)
if (!Ret || Ret == -1)
break;
if (Msg.message == WM_HOTKEY)
{
switch (Msg.wParam)
{
case IDHK_RUN: /* Win+R */
CloseHandle(CreateThread(NULL, 0, RunFileDlgThread, This, 0, NULL));
break;
}
}
if (This->StartMenuBand == NULL ||
IMenuBand_IsMenuMessage(This->StartMenuBand,
&Msg) != S_OK)