feat: make shortcuts easier to add across the app

This commit is contained in:
Zoe
2026-02-25 19:47:33 -06:00
parent 50cb195486
commit d22d08e99f
4 changed files with 57 additions and 21 deletions
+6 -2
View File
@@ -2,14 +2,18 @@
import Dialog from '~/components/Dialog/index.vue';
const { colorScheme } = await useUserSettings();
const { toggle: toggleSidebar } = useSidebar();
const { addShortcut } = useKeyboardShortcuts();
addShortcut(['ctrl', '['], () => {
toggleSidebar();
});
useHead({
htmlAttrs: {
class: colorScheme.class
}
});
useKeyboardShortcuts();
</script>
<template>