Support "Recent changes" tab by keyboard navigation in Plasmoid

This commit is contained in:
Martchus 2020-05-26 18:12:16 +02:00
parent e8952e77d1
commit 66f8555d0a
1 changed files with 10 additions and 5 deletions

View File

@ -85,7 +85,7 @@ ColumnLayout {
// select previous tab
switch (mainTabGroup.currentTab) {
case dirsPage:
downloadsTabButton.clicked()
recentChangesPage.clicked()
break
case devicesPage:
dirsTabButton.clicked()
@ -93,6 +93,9 @@ ColumnLayout {
case downloadsPage:
devsTabButton.clicked()
break
case recentChangesPage:
downloadsTabButton.clicked()
break
}
break
case Qt.Key_Right:
@ -105,8 +108,10 @@ ColumnLayout {
downloadsTabButton.clicked()
break
case downloadsPage:
dirsTabButton.clicked()
recentChangesTabButton.clicked()
break
case recentChangesPage:
dirsTabButton.clicked()
}
break
case Qt.Key_Enter:
@ -132,17 +137,17 @@ ColumnLayout {
}
break
case Qt.Key_1:
// select directories tab
dirsTabButton.clicked()
break
case Qt.Key_2:
// select devices tab
devsTabButton.clicked()
break
case Qt.Key_3:
// select downloads tab
downloadsTabButton.clicked()
break
case Qt.Key_4:
recentChangesTabButton.clicked()
break
default:
sendKeyEventToFilter(event)
return