Merge pull request #5090 from xyflow/patch-2

Patch 2
This commit is contained in:
Moritz Klack
2025-03-17 14:35:56 +01:00
committed by GitHub
2 changed files with 5 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@xyflow/react': patch
---
Release key even when an inout field is focused
-7
View File
@@ -106,13 +106,6 @@ export function useKeyPress(
};
const upHandler = (event: KeyboardEvent) => {
const preventAction =
(!modifierPressed.current || (modifierPressed.current && !options.actInsideInputWithModifier)) &&
isInputDOMNode(event);
if (preventAction) {
return false;
}
const keyOrCode = useKeyOrCode(event.code, keysToWatch);
if (isMatchingKey(keyCodes, pressedKeys.current, true)) {