Always allow releasing keys.

This commit is contained in:
Daniel Darabos
2025-02-25 19:57:59 +01:00
committed by GitHub
parent 8017792542
commit dfc28c7a15
-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)) {