From 721d04a72955e3d0caf36cd6fb58873db52fb6de Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 27 Sep 2023 21:43:15 -0300 Subject: [PATCH] Remove solution of christian to implement more general way --- .../src/modals/dictAreaModal/index.tsx | 83 +++++++++---------- 1 file changed, 37 insertions(+), 46 deletions(-) diff --git a/src/frontend/src/modals/dictAreaModal/index.tsx b/src/frontend/src/modals/dictAreaModal/index.tsx index f7b20f9d2..9cc525b48 100644 --- a/src/frontend/src/modals/dictAreaModal/index.tsx +++ b/src/frontend/src/modals/dictAreaModal/index.tsx @@ -26,55 +26,46 @@ export default function DictAreaModal({ if (value) ref.current = value; }, [ref]); - //This code prevents delete Node and close modal when user press backspace key - const handleKeyDown = (event) => { - if (event.code === "Backspace") { - event.stopPropagation(); - } - }; - return ( -
- - {children} - - Edit Dictionary -
+ + ); }