atproto explorer pdsls.dev
atproto tool

dont trigger shortcut when editor opened

juli.ee a56e4635 794d6b9a

verified
Changed files
+1
src
components
+1
src/components/create.tsx
···
onMount(() => {
const keyEvent = (ev: KeyboardEvent) => {
if (ev.target instanceof HTMLInputElement || ev.target instanceof HTMLTextAreaElement) return;
+
if ((ev.target as HTMLElement).closest("[data-modal]")) return;
const key = props.create ? "n" : "e";
if (ev.key === key) {