wxVListBox: fix Page Down being unable to reach last item
This commit is contained in:
parent
66dfd0ae89
commit
95054f3d4a
1 changed files with 11 additions and 1 deletions
|
|
@ -632,9 +632,19 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
|
|||
|
||||
case WXK_PAGEDOWN:
|
||||
case WXK_NUMPAD_PAGEDOWN:
|
||||
{
|
||||
size_t oldBegin = GetVisibleBegin();
|
||||
PageDown();
|
||||
current = GetVisibleBegin();
|
||||
if (GetVisibleBegin() > oldBegin)
|
||||
{
|
||||
current = GetVisibleBegin();
|
||||
}
|
||||
else
|
||||
{
|
||||
current = GetRowCount() - 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case WXK_PAGEUP:
|
||||
case WXK_NUMPAD_PAGEUP:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue