mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
[SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis), simplify
svn path=/trunk/; revision=47185
This commit is contained in:
parent
547dbfc5cf
commit
b320b4bcb1
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue