update dependencies & fix keyhandler
This commit is contained in:
@@ -50,17 +50,17 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@svelte-put/shortcut": "^4.0.0",
|
||||
"@svelte-put/shortcut": "^4.1.0",
|
||||
"@xyflow/system": "workspace:*",
|
||||
"classcat": "^5.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^3.3.1",
|
||||
"@sveltejs/kit": "^2.12.1",
|
||||
"@sveltejs/kit": "^2.15.2",
|
||||
"@sveltejs/package": "^2.3.7",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
||||
"@typescript-eslint/parser": "^8.18.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
||||
"@typescript-eslint/parser": "^8.19.1",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"cssnano": "^7.0.6",
|
||||
"dotenv": "^16.4.7",
|
||||
@@ -75,12 +75,12 @@
|
||||
"postcss-rename": "^0.6.1",
|
||||
"prettier": "^3.4.2",
|
||||
"prettier-plugin-svelte": "^3.3.2",
|
||||
"svelte": "^5.14.4",
|
||||
"svelte-check": "^4.1.1",
|
||||
"svelte": "^5.17.1",
|
||||
"svelte-check": "^4.1.3",
|
||||
"svelte-eslint-parser": "^0.43.0",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.2"
|
||||
"typescript": "^5.7.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^5.0.0"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
type ShortcutEventDetail,
|
||||
type ShortcutModifierDefinition
|
||||
} from '@svelte-put/shortcut';
|
||||
import { getElementsToRemove, isInputDOMNode, isMacOs } from '@xyflow/system';
|
||||
import { isInputDOMNode, isMacOs } from '@xyflow/system';
|
||||
|
||||
import type { KeyHandlerProps } from './types';
|
||||
import type { KeyDefinition, KeyDefinitionObject } from '$lib/types';
|
||||
@@ -94,7 +94,9 @@
|
||||
type: 'keyup'
|
||||
}}
|
||||
use:shortcut={{
|
||||
trigger: getShortcutTrigger(multiSelectionKey, () => (store.multiselectionKeyPressed = true)),
|
||||
trigger: getShortcutTrigger(multiSelectionKey, () => {
|
||||
store.multiselectionKeyPressed = true;
|
||||
}),
|
||||
type: 'keydown'
|
||||
}}
|
||||
use:shortcut={{
|
||||
|
||||
Reference in New Issue
Block a user