mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-15 08:02:44 +01:00
Fix markdown newline handling during IME composition (gitea#36421) (#36424)
Backport of #36421
This commit is contained in:
parent
c326369f47
commit
d7d6533311
@ -176,6 +176,7 @@ export function markdownHandleIndention(tvs: TextareaValueSelection): MarkdownHa
|
||||
}
|
||||
|
||||
function handleNewline(textarea: HTMLTextAreaElement, e: Event) {
|
||||
if ((e as KeyboardEvent).isComposing) return;
|
||||
const ret = markdownHandleIndention({value: textarea.value, selStart: textarea.selectionStart, selEnd: textarea.selectionEnd});
|
||||
if (!ret.handled) return;
|
||||
e.preventDefault();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user