feat: basic keyboard shortcuts (#319)
This commit is contained in:
parent
69c1bd8b6a
commit
c4d8137186
11 changed files with 270 additions and 4 deletions
|
@ -18,6 +18,7 @@ export const isFirstVisit = useLocalStorage(STORAGE_KEY_FIRST_VISIT, !process.mo
|
|||
|
||||
export const isSigninDialogOpen = ref(false)
|
||||
export const isPublishDialogOpen = ref(false)
|
||||
export const isKeyboardShortcutsDialogOpen = ref(false)
|
||||
export const isMediaPreviewOpen = ref(false)
|
||||
export const isEditHistoryDialogOpen = ref(false)
|
||||
export const isPreviewHelpOpen = ref(isFirstVisit.value)
|
||||
|
@ -139,3 +140,11 @@ export function openCommandPanel(isCommandMode = false) {
|
|||
export function closeCommandPanel() {
|
||||
isCommandPanelOpen.value = false
|
||||
}
|
||||
|
||||
export function toggleKeyboardShortcuts() {
|
||||
isKeyboardShortcutsDialogOpen.value = !isKeyboardShortcutsDialogOpen.value
|
||||
}
|
||||
|
||||
export function closeKeyboardShortcuts() {
|
||||
isKeyboardShortcutsDialogOpen.value = false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue