fix(web): prevent number-key shortcuts from hijacking input in focused editor (#1810)

This commit is contained in:
Ishan authored and Julius Marminge committed 2026-04-13 14:41:45 -07:00
1 parent a6a501f4ab
commit 098869193a
1 file changed
+4 -1
@@ -100,7 +100,10 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {
return;
}
if (target instanceof HTMLElement && target.isContentEditable) {
if (
target instanceof HTMLElement &&
target.closest('[contenteditable]:not([contenteditable="false"])')
) {
return;
}
const digit = Number.parseInt(event.key, 10);