fix(Map): Fixed delete system on signature deletion

This commit is contained in:
Dmitry Popov
2025-02-22 08:39:50 +01:00
parent f81f41f555
commit 2d92dfbafa

View File

@@ -104,7 +104,11 @@ export function SystemSignaturesContent({
}, [selectable, clipboardContent]); }, [selectable, clipboardContent]);
useHotkey(true, ['a'], handleSelectAll); useHotkey(true, ['a'], handleSelectAll);
useHotkey(false, ['Backspace', 'Delete'], handleDeleteSelected); useHotkey(false, ['Backspace', 'Delete'], (event: KeyboardEvent) => {
event.preventDefault();
event.stopPropagation();
handleDeleteSelected();
});
const [nameColumnWidth, setNameColumnWidth] = useState('auto'); const [nameColumnWidth, setNameColumnWidth] = useState('auto');
const handleResize = useCallback(() => { const handleResize = useCallback(() => {