feat: make shortcuts easier to add across the app
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user