Add keybinds to switch accounts

This commit is contained in:
miruka
2020-04-27 22:10:10 -04:00
parent 72c96b3ba5
commit 65103eaaba
6 changed files with 30 additions and 0 deletions

View File

@@ -39,6 +39,18 @@ SwipeView {
function reset() { setCurrentIndex(defaultIndex) }
function incrementWrapIndex() {
currentIndex === count - 1 ?
setCurrentIndex(0) :
incrementCurrentIndex()
}
function decrementWrapIndex() {
currentIndex === 0 ?
setCurrentIndex(count - 1) :
decrementCurrentIndex()
}
TabShortcuts {
container: swipeView