[SHELL32] Add initial ctrl+c/v handling (WIP for bug #4850)

svn path=/trunk/; revision=47182
This commit is contained in:
Gregor Schneider 2010-05-12 20:41:55 +00:00
parent 0c0d737b5d
commit 77bbb3cacb

View file

@ -1511,6 +1511,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
msg.pt = 0;*/
LPNMLVKEYDOWN plvKeyDown = (LPNMLVKEYDOWN) lpnmh;
SHORT ctrl = GetAsyncKeyState(VK_CONTROL);
/* initiate a rename of the selected file or directory */
if(plvKeyDown->wVKey == VK_F2)
@ -1591,6 +1592,14 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
IShellBrowser_BrowseObject(lpSb, NULL, SBSP_PARENT);
}
}
else if(plvKeyDown->wVKey == 'C' && (ctrl & 0x8000))
{
FIXME("Need to copy\n");
}
else if(plvKeyDown->wVKey == 'V' && (ctrl & 0x8000))
{
FIXME("Need to paste\n");
}
else
FIXME("LVN_KEYDOWN key=0x%08x\n",plvKeyDown->wVKey);
}