[BROWSEUI] Follow-up of #3582

Also fixes VK_HOME and VK_END. CORE-9281
This commit is contained in:
Katayama Hirofumi MZ 2021-04-05 07:43:40 +09:00
parent ab7d8f3616
commit a5950308fd
2 changed files with 1 additions and 5 deletions

View file

@ -883,7 +883,6 @@ BOOL CAutoComplete::OnEditKeyDown(WPARAM wParam, LPARAM lParam)
UINT vk = (UINT)wParam; // virtual key UINT vk = (UINT)wParam; // virtual key
switch (vk) switch (vk)
{ {
case VK_HOME: case VK_END:
case VK_UP: case VK_DOWN: case VK_UP: case VK_DOWN:
case VK_PRIOR: case VK_NEXT: case VK_PRIOR: case VK_NEXT:
// is suggestion available? // is suggestion available?
@ -1017,9 +1016,6 @@ BOOL CAutoComplete::OnListUpDown(UINT vk)
INT cItems = m_hwndList.GetItemCount(); // the number of items INT cItems = m_hwndList.GetItemCount(); // the number of items
switch (vk) switch (vk)
{ {
case VK_HOME: case VK_END:
m_hwndList.SendMessageW(WM_KEYDOWN, vk, 0);
break;
case VK_UP: case VK_UP:
if (iItem == -1) if (iItem == -1)
iItem = cItems - 1; iItem = cItems - 1;

View file

@ -27,7 +27,7 @@ STDMETHODIMP CACLHistory::Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
if (celt != 1) if (celt != 1)
return E_NOTIMPL; return E_NOTIMPL;
// FIXME: *rgelt, *pceltFetched, return value // FIXME: *rgelt, *pceltFetched, return value
return E_FAIL; return S_FALSE;
} }
STDMETHODIMP CACLHistory::Reset() STDMETHODIMP CACLHistory::Reset()