Changed quick navigation (arrows will be for days)
This commit is contained in:
@@ -38,27 +38,27 @@ onMounted(() => {
|
|||||||
*/
|
*/
|
||||||
// Key combos to navigate
|
// Key combos to navigate
|
||||||
const {
|
const {
|
||||||
arrowUp, arrowLeft, pageUp,
|
home, pageUp,
|
||||||
arrowDown, arrowRight, pageDown,
|
end, pageDown,
|
||||||
} = useMagicKeys()
|
} = useMagicKeys()
|
||||||
|
|
||||||
watch([arrowUp, arrowLeft], (k) => {
|
watch(home!, (k) => {
|
||||||
if (calendarState.value === 'active' && (k[0] || k[1])) {
|
|
||||||
toPastNear()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
watch(pageUp!, (k) => {
|
|
||||||
if (calendarState.value === 'active' && k) {
|
if (calendarState.value === 'active' && k) {
|
||||||
toPastFar()
|
toPastFar()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
watch(pageUp!, (k) => {
|
||||||
|
if (calendarState.value === 'active' && k) {
|
||||||
|
toPastNear()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
watch([arrowDown, arrowRight], (k) => {
|
watch(pageDown!, (k) => {
|
||||||
if (calendarState.value === 'active' && (k[0] || k[1])) {
|
if (calendarState.value === 'active' && k) {
|
||||||
toFutureNear()
|
toFutureNear()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
watch(pageDown!, (k) => {
|
watch(end!, (k) => {
|
||||||
if (calendarState.value === 'active' && k) {
|
if (calendarState.value === 'active' && k) {
|
||||||
toFutureFar()
|
toFutureFar()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user