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
This commit is contained in:
David Edmundson 2017-07-03 11:31:46 +01:00
parent 1e689a0e63
commit 06410e779b

View File

@ -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
}