regedit: Allow deletion of selected values without focus.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2021-06-08 22:55:31 +10:00 committed by Alexandre Julliard
parent bcd2b99d95
commit c1733540d6

View file

@ -178,7 +178,7 @@ static void UpdateMenuItems(HMENU hMenu) {
selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0); selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0);
keyName = GetItemPath(hwndTV, selection, &hRootKey); keyName = GetItemPath(hwndTV, selection, &hRootKey);
index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1, 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_expand_or_collapse_item(hwndTV, selection, hMenu);
update_modify_items(hMenu, index); update_modify_items(hMenu, index);