diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-09 10:22:09 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-09 11:08:06 +0000 |
commit | 0cee4ffd97f9f68f30eb34c6031075d72e6ed31b (patch) | |
tree | 9c20f2b675ebe2a6df0ea8a24ad949fbf964b5ff /src/templates/qquickpopup.cpp | |
parent | 0798431e8b43d075dc011b59ed22e2ba8c7850a5 (diff) |
QQuickPopup: fix tab navigation
Required for and tested by the next commit.
Change-Id: I1cd4f14e3b891fafa3de7389a570bc6e53560416
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickpopup.cpp')
-rw-r--r-- | src/templates/qquickpopup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/templates/qquickpopup.cpp b/src/templates/qquickpopup.cpp index 481771f9..7d66577a 100644 --- a/src/templates/qquickpopup.cpp +++ b/src/templates/qquickpopup.cpp @@ -1587,6 +1587,9 @@ void QQuickPopup::keyPressEvent(QKeyEvent *event) Q_D(QQuickPopup); event->accept(); + if (hasActiveFocus() && (event->key() == Qt::Key_Tab || event->key() == Qt::Key_Backtab)) + QQuickItemPrivate::focusNextPrev(d->popupItem, event->key() == Qt::Key_Tab); + if (event->key() != Qt::Key_Escape) return; |