feat(core): make useKeyPress public and export it
This commit is contained in:
5
.changeset/weak-timers-think.md
Normal file
5
.changeset/weak-timers-think.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vue-flow/core": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Make `useKeyPress` public and export it
|
||||||
@@ -74,7 +74,7 @@ const window = useWindow()
|
|||||||
/**
|
/**
|
||||||
* Composable that returns a boolean value if a key is pressed
|
* Composable that returns a boolean value if a key is pressed
|
||||||
*
|
*
|
||||||
* @internal
|
* @public
|
||||||
* @param keyFilter - Can be a boolean, a string, an array of strings or a function that returns a boolean. If it's a boolean, it will act as if the key is always pressed. If it's a string, it will return true if a key matching that string is pressed. If it's an array of strings, it will return true if any of the strings match a key being pressed, or a combination (e.g. ['ctrl+a', 'ctrl+b'])
|
* @param keyFilter - Can be a boolean, a string, an array of strings or a function that returns a boolean. If it's a boolean, it will act as if the key is always pressed. If it's a string, it will return true if a key matching that string is pressed. If it's an array of strings, it will return true if any of the strings match a key being pressed, or a combination (e.g. ['ctrl+a', 'ctrl+b'])
|
||||||
* @param options - Options object
|
* @param options - Options object
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ export { useHandleConnections } from './composables/useHandleConnections'
|
|||||||
export { useNodesData } from './composables/useNodesData'
|
export { useNodesData } from './composables/useNodesData'
|
||||||
export { useEdgesData } from './composables/useEdgesData'
|
export { useEdgesData } from './composables/useEdgesData'
|
||||||
export { useNodesInitialized } from './composables/useNodesInitialized'
|
export { useNodesInitialized } from './composables/useNodesInitialized'
|
||||||
|
export { useKeyPress } from './composables/useKeyPress'
|
||||||
|
|
||||||
export { VueFlowError, ErrorCode, isErrorOfType } from './utils/errors'
|
export { VueFlowError, ErrorCode, isErrorOfType } from './utils/errors'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user