a tool for shared writing and social publishing

remove extraneous delete handling

it's handling in block keyboard handlers

-6
-6
components/Blocks/ExternalLinkBlock.tsx
··· 12 12 import { focusElement, Input } from "components/Input"; 13 13 import { isUrl } from "src/utils/isURL"; 14 14 import { elementId } from "src/utils/elementId"; 15 - import { deleteBlock } from "./DeleteBlock"; 16 15 import { focusBlock } from "src/utils/focusBlock"; 17 16 18 17 export const ExternalLinkBlock = ( ··· 175 174 value={linkValue} 176 175 onChange={(e) => setLinkValue(e.target.value)} 177 176 onKeyDown={(e) => { 178 - if (e.key === "Backspace" && linkValue === "") { 179 - e.preventDefault(); 180 - rep && deleteBlock([props.entityID].flat(), rep); 181 - return; 182 - } 183 177 if (e.key === "Enter") { 184 178 e.preventDefault(); 185 179 if (!linkValue) return;