From 06410e779b4fac87bed45df6b70bc54fcd0c0c0e Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 3 Jul 2017 11:31:46 +0100 Subject: [PATCH] Fix tab bar layout key handling in RTL Summary: Current code will, when mirrored, treat all keys like they're the left key. BUG: 379894 Test Plan: Ran plasma in RTL Reviewers: #plasma, broulik Reviewed By: #plasma, broulik Subscribers: plasma-devel, #frameworks Tags: #plasma, #frameworks Differential Revision: https://phabricator.kde.org/D6480 --- .../plasmacomponents/qml/private/TabBarLayout.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml index 1b57f5569..4a6417add 100644 --- a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml +++ b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml @@ -77,7 +77,7 @@ Item { if (event.key == Qt.Key_Right) { (priv.mirrored ? priv.goPreviousTab : priv.goNextTab)(); event.accepted = true - } else if (event.key == Qt.Key_Left || priv.mirrored) { + } else if (event.key == Qt.Key_Left) { (priv.mirrored ? priv.goNextTab : priv.goPreviousTab)(); event.accepted = true }