[SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis), simplify

svn path=/trunk/; revision=47185
This commit is contained in:
Gregor Schneider 2010-05-12 21:11:24 +00:00
parent 547dbfc5cf
commit b320b4bcb1

View file

@ -1511,7 +1511,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
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 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
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");
}