diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index bd65f18cb..6b0180720 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -122,37 +122,6 @@ export default function App() { }; - //Prevent the control+backspace event on the application - const onKeyDownRef = useRef(false); - useEffect(() => { - const handleKeyDownCapture = (event) => { - - if(event.key === "Backspace" && event.ctrlKey === true) { - event.preventDefault(); - event.stopPropagation(); - } - onKeyDownRef.current = true; - }; - - const handleKeyUpCapture = (event) => { - if (onKeyDownRef.current) { - if(event.key === "Backspace" && event.ctrlKey === true) { - event.preventDefault(); - event.stopPropagation(); - } - onKeyDownRef.current = false; - } - }; - - document.addEventListener('keydown', handleKeyDownCapture, true); - document.addEventListener('keyup', handleKeyUpCapture, true); - - return () => { - document.removeEventListener('keydown', handleKeyDownCapture, true); - document.removeEventListener('keyup', handleKeyUpCapture, true); - }; - }, []); - return ( //need parent component with width and height