[Refactor] Move paste handling to usePaste composable (#2452)

This commit is contained in:
Chenlei Hu
2025-02-06 13:37:37 -05:00
committed by GitHub
parent af7a6601e0
commit 1061620783
3 changed files with 96 additions and 77 deletions

View File

@@ -45,6 +45,7 @@ import { useCanvasDrop } from '@/composables/useCanvasDrop'
import { useContextMenuTranslation } from '@/composables/useContextMenuTranslation'
import { useCopy } from '@/composables/useCopy'
import { useGlobalLitegraph } from '@/composables/useGlobalLitegraph'
import { usePaste } from '@/composables/usePaste'
import { useWorkflowPersistence } from '@/composables/useWorkflowPersistence'
import { CORE_SETTINGS } from '@/constants/coreSettings'
import { i18n } from '@/i18n'
@@ -265,6 +266,7 @@ onMounted(async () => {
useGlobalLitegraph()
useContextMenuTranslation()
useCopy()
usePaste()
comfyApp.vueAppReady = true