Skip to content
Snippets Groups Projects
Commit 7d5c0a7a authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[FEAT]: Add onKeyPress listener in FullScreen component

parent a0b0a558
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment