Author: gschneider
Date: Wed May 12 23:11:24 2010
New Revision: 47185
URL:
http://svn.reactos.org/svn/reactos?rev=47185&view=rev
Log:
[SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis),
simplify
Modified:
trunk/reactos/dll/win32/shell32/shlview.c
Modified: trunk/reactos/dll/win32/shell32/shlview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlview.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shlview.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shlview.c [iso-8859-1] Wed May 12 23:11:24 2010
@@ -1511,7 +1511,7 @@
msg.pt = 0;*/
LPNMLVKEYDOWN plvKeyDown = (LPNMLVKEYDOWN) lpnmh;
- SHORT ctrl = GetAsyncKeyState(VK_CONTROL);
+ SHORT ctrl = GetKeyState(VK_CONTROL) & 0x8000;
/* initiate a rename of the selected file or directory */
if(plvKeyDown->wVKey == VK_F2)
@@ -1592,11 +1592,11 @@
IShellBrowser_BrowseObject(lpSb, NULL, SBSP_PARENT);
}
}
- else if(plvKeyDown->wVKey == 'C' && (ctrl & 0x8000))
+ else if(plvKeyDown->wVKey == 'C' && ctrl)
{
FIXME("Need to copy\n");
}
- else if(plvKeyDown->wVKey == 'V' && (ctrl & 0x8000))
+ else if(plvKeyDown->wVKey == 'V' && ctrl)
{
FIXME("Need to paste\n");
}