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() onHeightChanged: layoutTimer.restart()
Keys.onPressed: { Keys.onPressed: {
if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) { if (event.key == Qt.Key_Right) {
if (event.key == Qt.Key_Right || priv.mirrored) { (priv.mirrored ? priv.goPreviousTab : priv.goNextTab)();
priv.goNextTab() event.accepted = true
event.accepted = true } else if (event.key == Qt.Key_Left || priv.mirrored) {
} else if (event.key == Qt.Key_Left || priv.mirrored) { (priv.mirrored ? priv.goNextTab : priv.goPreviousTab)();
priv.goPreviousTab() event.accepted = true
event.accepted = true
}
} }
} }