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()
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user