bad key event handling fixed

This commit is contained in:
Uwe Rathmann 2017-11-21 09:05:09 +01:00
parent 0d00b52730
commit 6f2419de4c
1 changed files with 5 additions and 2 deletions

View File

@ -168,7 +168,10 @@ QSizeF QskListView::contentsSizeHint() const
void QskListView::keyPressEvent( QKeyEvent* event ) void QskListView::keyPressEvent( QKeyEvent* event )
{ {
if ( m_data->selectionMode == NoSelection ) if ( m_data->selectionMode == NoSelection )
{
Inherited::keyPressEvent( event );
return; return;
}
int row = selectedRow(); int row = selectedRow();
@ -204,12 +207,12 @@ void QskListView::keyPressEvent( QKeyEvent* event )
case Qt::Key_PageDown: case Qt::Key_PageDown:
{ {
// TODO ... // TODO ...
return QskScrollView::keyPressEvent( event ); return Inherited::keyPressEvent( event );
break; break;
} }
default: default:
{ {
return QskScrollView::keyPressEvent( event ); return Inherited::keyPressEvent( event );
} }
} }