fix dialog command palettes error

This commit is contained in:
Dede Fuji Abdul
2023-10-27 15:36:47 +07:00
parent 7c6212c37b
commit 06749de494
7 changed files with 54 additions and 61 deletions

View File

@@ -13,11 +13,7 @@ export const useCommandPalattesStore = defineStore('command_palettes', () => {
const keyFStatus = ref(false)
const showCommandPalettes = () => {
open.value = true;
}
const handleOnDismissCommandPalettes = () => {
open.value = false;
open.value = true
}
const onKeyPressed = (event: KeyboardEvent) => {
@@ -100,7 +96,6 @@ export const useCommandPalattesStore = defineStore('command_palettes', () => {
return {
open,
showCommandPalettes,
handleOnDismissCommandPalettes,
onKeyPressed,
onKeyUp,
addRecent,