@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Release key even when an inout field is focused
|
||||||
@@ -106,13 +106,6 @@ export function useKeyPress(
|
|||||||
};
|
};
|
||||||
|
|
||||||
const upHandler = (event: KeyboardEvent) => {
|
const upHandler = (event: KeyboardEvent) => {
|
||||||
const preventAction =
|
|
||||||
(!modifierPressed.current || (modifierPressed.current && !options.actInsideInputWithModifier)) &&
|
|
||||||
isInputDOMNode(event);
|
|
||||||
|
|
||||||
if (preventAction) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
const keyOrCode = useKeyOrCode(event.code, keysToWatch);
|
const keyOrCode = useKeyOrCode(event.code, keysToWatch);
|
||||||
|
|
||||||
if (isMatchingKey(keyCodes, pressedKeys.current, true)) {
|
if (isMatchingKey(keyCodes, pressedKeys.current, true)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user