mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
[Refactor] Move keybinds extension to keybindingService (#2063)
This commit is contained in:
@@ -42,6 +42,8 @@ import { SERVER_CONFIG_ITEMS } from '@/constants/serverConfig'
|
||||
import { useMenuItemStore } from '@/stores/menuItemStore'
|
||||
import { useCommandStore } from '@/stores/commandStore'
|
||||
import { useCoreCommands } from '@/hooks/coreCommandHooks'
|
||||
import { useEventListener } from '@vueuse/core'
|
||||
import { useKeybindingService } from '@/services/keybindingService'
|
||||
|
||||
setupAutoQueueHandler()
|
||||
|
||||
@@ -160,6 +162,8 @@ onBeforeUnmount(() => {
|
||||
executionStore.unbindExecutionEvents()
|
||||
})
|
||||
|
||||
useEventListener(window, 'keydown', useKeybindingService().keybindHandler)
|
||||
|
||||
const onGraphReady = () => {
|
||||
requestIdleCallback(
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user