plasmoid: Add more shortcuts

This commit is contained in:
Martchus 2017-09-12 00:01:19 +02:00
parent d3b1da2def
commit 0d7f20cee1
1 changed files with 26 additions and 0 deletions

View File

@ -27,6 +27,32 @@ ColumnLayout {
mainTabGroup.currentTab.item.view.incrementCurrentIndex()
event.accepted = true
break
case Qt.Key_Left:
switch (mainTabGroup.currentTab) {
case dirsPage:
downloadsTabButton.clicked()
break
case devicesPage:
dirsTabButton.clicked()
break
case downloadsPage:
devsTabButton.clicked()
break
}
break
case Qt.Key_Right:
switch (mainTabGroup.currentTab) {
case dirsPage:
devsTabButton.clicked()
break
case devicesPage:
downloadsTabButton.clicked()
break
case downloadsPage:
dirsTabButton.clicked()
break
}
break
case Qt.Key_Enter:
case Qt.Key_Return: