comctl32/listbox: Fix multicolumn navigation on VK_RIGHT.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c9b6dd83a3
commit
da75153eae
|
@ -2349,8 +2349,7 @@ static LRESULT LISTBOX_HandleKeyDown( LB_DESCR *descr, DWORD key )
|
|||
if (descr->style & LBS_MULTICOLUMN)
|
||||
{
|
||||
bForceSelection = FALSE;
|
||||
if (descr->focus_item + descr->page_size < descr->nb_items)
|
||||
caret = descr->focus_item + descr->page_size;
|
||||
caret = min(descr->focus_item + descr->page_size, descr->nb_items - 1);
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
|
|
Loading…
Reference in New Issue