From 3dd7633194173d630a6018dbfaad9b5be164e09f Mon Sep 17 00:00:00 2001 From: guarzo Date: Thu, 20 Feb 2025 02:19:20 -0500 Subject: [PATCH] fix: restore delete key functionality for nodes (#191) --- .../SystemSignaturesContent/SystemSignaturesContent.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx index 4fbc46cf..80fdc10f 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx @@ -114,11 +114,7 @@ export function SystemSignaturesContent({ ]); useHotkey(true, ['a'], handleSelectAll); - useHotkey(false, ['Backspace', 'Delete'], (event: KeyboardEvent) => { - event.preventDefault(); - event.stopPropagation(); - handleDeleteSelected(); - }); + useHotkey(false, ['Backspace', 'Delete'], handleDeleteSelected); const [nameColumnWidth, setNameColumnWidth] = useState('auto'); const handleResize = useCallback(() => {