| ... | @@ -100,7 +100,10 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard( | ... | @@ -100,7 +100,10 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard( |
| 100 | if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) { | 100 | if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) { |
| 101 | return; | 101 | return; |
| 102 | } | 102 | } |
| 103 | if (target instanceof HTMLElement && target.isContentEditable) { | 103 | if ( |
| | 104 | target instanceof HTMLElement && |
| | 105 | target.closest('[contenteditable]:not([contenteditable="false"])') |
| | 106 | ) { |
| 104 | return; | 107 | return; |
| 105 | } | 108 | } |
| 106 | const digit = Number.parseInt(event.key, 10); | 109 | const digit = Number.parseInt(event.key, 10); |