a tool for shared writing and social publishing

hitting the esc key now also blurs blocks that are not text blocks (like linked cards)

+4
+4
components/Blocks.tsx
··· 207 207 document.getElementById(elementId.block(newEntityID).text)?.focus(); 208 208 }, 10); 209 209 } 210 + if (e.key === "Escape") { 211 + e.preventDefault(); 212 + useUIState.setState({ selectedBlock: [] }); 213 + } 210 214 }; 211 215 window.addEventListener("keydown", listener); 212 216 return () => window.removeEventListener("keydown", listener);