mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:20:30 +00:00
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 a new issue