diff --git a/src/qml/ConsoleCategoryRail.qml b/src/qml/ConsoleCategoryRail.qml index 5a131d9..7e0f0c9 100644 --- a/src/qml/ConsoleCategoryRail.qml +++ b/src/qml/ConsoleCategoryRail.qml @@ -218,6 +218,18 @@ Item { } Keys.onDownPressed: root.focusDownRequested() + Keys.onLeftPressed: { + if (tabList.currentIndex > 0) { + root._applyIndex(tabList.currentIndex - 1) + Qt.callLater(function() { if (tabList.currentItem) tabList.currentItem.forceActiveFocus() }) + } + } + Keys.onRightPressed: { + if (tabList.currentIndex < sourceModel.count - 1) { + root._applyIndex(tabList.currentIndex + 1) + Qt.callLater(function() { if (tabList.currentItem) tabList.currentItem.forceActiveFocus() }) + } + } } } }