[BROWSEUI] Fix auto-completion on VK_DELETE (#3543)

Reduce failures against Delete key on auto-completion. CORE-9281
This commit is contained in:
Katayama Hirofumi MZ 2021-03-20 13:18:47 +09:00 committed by GitHub
parent 4885c34fa8
commit f49c164428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -961,8 +961,7 @@ BOOL CAutoComplete::OnEditKeyDown(WPARAM wParam, LPARAM lParam)
if (!CanAutoSuggest())
return FALSE; // do default
m_hwndEdit.DefWindowProcW(WM_KEYDOWN, VK_DELETE, 0); // do default
if (IsWindowVisible())
OnEditUpdate(FALSE);
OnEditUpdate(FALSE);
return TRUE; // eat
}
case VK_BACK: