Add backtab.

This commit is contained in:
Black Hat 2018-10-24 07:00:01 +08:00
parent 107f60d55b
commit 47782f3198
1 changed files with 7 additions and 0 deletions

View File

@ -195,6 +195,13 @@ Rectangle {
} }
} }
Keys.onBacktabPressed: {
if (isAutoCompleting) {
if (userAutoCompleteListView.currentIndex == 0) userAutoCompleteListView.currentIndex = userAutoCompleteListView.count - 1
else userAutoCompleteListView.currentIndex--
}
}
Keys.onTabPressed: { Keys.onTabPressed: {
if (isAutoCompleting) { if (isAutoCompleting) {
if (userAutoCompleteListView.currentIndex + 1 == userAutoCompleteListView.count) userAutoCompleteListView.currentIndex = 0 if (userAutoCompleteListView.currentIndex + 1 == userAutoCompleteListView.count) userAutoCompleteListView.currentIndex = 0