From 47782f31983fb7089bdd3b8e40eb2055ca99d0f1 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 24 Oct 2018 07:00:01 +0800 Subject: [PATCH] Add backtab. --- imports/Spectral/Panel/RoomPanelInput.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/imports/Spectral/Panel/RoomPanelInput.qml b/imports/Spectral/Panel/RoomPanelInput.qml index da62e06..c9aeb95 100644 --- a/imports/Spectral/Panel/RoomPanelInput.qml +++ b/imports/Spectral/Panel/RoomPanelInput.qml @@ -195,6 +195,13 @@ Rectangle { } } + Keys.onBacktabPressed: { + if (isAutoCompleting) { + if (userAutoCompleteListView.currentIndex == 0) userAutoCompleteListView.currentIndex = userAutoCompleteListView.count - 1 + else userAutoCompleteListView.currentIndex-- + } + } + Keys.onTabPressed: { if (isAutoCompleting) { if (userAutoCompleteListView.currentIndex + 1 == userAutoCompleteListView.count) userAutoCompleteListView.currentIndex = 0