user32/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
17df6aa5a3
commit
c9b6dd83a3
|
@ -2354,8 +2354,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