From 96691036f6834169b4845d87f9cfba6a687935b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 25 Oct 2013 15:04:22 +0200 Subject: [PATCH] Fix forwarding key events to the TabBox list view Allows to navigate with cursor keys again. --- tabbox/declarative.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tabbox/declarative.cpp b/tabbox/declarative.cpp index 81268d6738..ae93d06427 100644 --- a/tabbox/declarative.cpp +++ b/tabbox/declarative.cpp @@ -429,7 +429,10 @@ void DeclarativeView::slotWindowChanged(WId wId, unsigned int properties) bool DeclarativeView::sendKeyEvent(QKeyEvent *e) { - return event(e); + if (QQuickItem *item = rootObject()->findChild(QStringLiteral("listView"))) { + return sendEvent(item, e); + } + return false; } } // namespace TabBox