Skip to content

Commit 7d5c0a7

Browse files
committed
[FEAT]: Add onKeyPress listener in FullScreen component
1 parent a0b0a55 commit 7d5c0a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/files-ui/components/previews/FullScreen/FullScreen.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ const FullScreen: React.FC<FullScreenProps> = (props: FullScreenProps) => {
3232
open ? "fui-fullscreen-container show-fs" : "fui-fullscreen-container"
3333
}
3434
onClick={handleClose}
35-
onKeyPress={(evt) => {
36-
if (evt.key === "Escape") onClose?.();
37-
}}
3835
>
3936
{open && (
4037
<div

0 commit comments

Comments
 (0)