From 7d5c0a7a115a4f605b9aacdc8ea240c7e5deeb60 Mon Sep 17 00:00:00 2001
From: Jose Manuel Serrano Amaut <a20122128@pucp.pe>
Date: Sun, 12 Mar 2023 21:36:45 -0500
Subject: [PATCH] [FEAT]: Add onKeyPress listener in FullScreen component

---
 src/files-ui/components/previews/FullScreen/FullScreen.tsx | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/files-ui/components/previews/FullScreen/FullScreen.tsx b/src/files-ui/components/previews/FullScreen/FullScreen.tsx
index 7574195..07e6ded 100644
--- a/src/files-ui/components/previews/FullScreen/FullScreen.tsx
+++ b/src/files-ui/components/previews/FullScreen/FullScreen.tsx
@@ -32,9 +32,6 @@ const FullScreen: React.FC<FullScreenProps> = (props: FullScreenProps) => {
         open ? "fui-fullscreen-container show-fs" : "fui-fullscreen-container"
       }
       onClick={handleClose}
-      onKeyPress={(evt) => {
-        if (evt.key === "Escape") onClose?.();
-      }}
     >
       {open && (
         <div
-- 
GitLab