Fix logic for arrow handling in RTL locales.

Summary: BUG:373749

Reviewers: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D3718
This commit is contained in:
Eike Hein 2016-12-18 08:30:46 +09:00
parent 4a97989f0f
commit db15022686

View File

@ -74,14 +74,12 @@ Item {
onHeightChanged: layoutTimer.restart()
Keys.onPressed: {
if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) {
if (event.key == Qt.Key_Right || priv.mirrored) {
priv.goNextTab()
event.accepted = true
} else if (event.key == Qt.Key_Left || priv.mirrored) {
priv.goPreviousTab()
event.accepted = true
}
if (event.key == Qt.Key_Right) {
(priv.mirrored ? priv.goPreviousTab : priv.goNextTab)();
event.accepted = true
} else if (event.key == Qt.Key_Left || priv.mirrored) {
(priv.mirrored ? priv.goNextTab : priv.goPreviousTab)();
event.accepted = true
}
}