Fix forwarding key events to the TabBox list view
Allows to navigate with cursor keys again.
This commit is contained in:
parent
3797c3d26e
commit
96691036f6
1 changed files with 4 additions and 1 deletions
|
@ -429,7 +429,10 @@ void DeclarativeView::slotWindowChanged(WId wId, unsigned int properties)
|
||||||
|
|
||||||
bool DeclarativeView::sendKeyEvent(QKeyEvent *e)
|
bool DeclarativeView::sendKeyEvent(QKeyEvent *e)
|
||||||
{
|
{
|
||||||
return event(e);
|
if (QQuickItem *item = rootObject()->findChild<QQuickItem*>(QStringLiteral("listView"))) {
|
||||||
|
return sendEvent(item, e);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace TabBox
|
} // namespace TabBox
|
||||||
|
|
Loading…
Reference in a new issue