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:
parent
4a97989f0f
commit
db15022686
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user