Commit c1733540 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Allow deletion of selected values without focus.

parent bcd2b99d
......@@ -178,7 +178,7 @@ static void UpdateMenuItems(HMENU hMenu) {
selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0);
keyName = GetItemPath(hwndTV, selection, &hRootKey);
index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1,
MAKELPARAM(LVNI_FOCUSED | LVNI_SELECTED, 0));
MAKELPARAM(LVNI_SELECTED, 0));
update_expand_or_collapse_item(hwndTV, selection, hMenu);
update_modify_items(hMenu, index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment