diff --git a/rsconcept/frontend/src/hooks/use-escape-key.ts b/rsconcept/frontend/src/hooks/use-escape-key.ts index d86f525b..705dd5cc 100644 --- a/rsconcept/frontend/src/hooks/use-escape-key.ts +++ b/rsconcept/frontend/src/hooks/use-escape-key.ts @@ -6,6 +6,8 @@ export function useEscapeKey(handleClose: () => void, isEnabled: boolean = true) const handleEscKey = useCallback( (event: KeyboardEvent) => { if (event.key === 'Escape') { + event.preventDefault(); + event.stopPropagation(); handleClose(); } },