From e7ade505469681483dcb677a9d7496edbe12baf4 Mon Sep 17 00:00:00 2001 From: t8m8 Date: Mon, 13 Nov 2023 19:08:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20Enter=20key=20not=20work?= =?UTF-8?q?ing=20correctly=20when=20using=20IME=20in=20post=20title=20(#18?= =?UTF-8?q?950)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes https://github.com/TryGhost/Ghost/issues/18949 - added check for `isComposing` in Enter key handler to avoid the move-to-post-body behaviour when the Enter keypress is used to end IME composition --------- Co-authored-by: t8m8 --- ghost/admin/app/components/gh-koenig-editor-lexical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-koenig-editor-lexical.js b/ghost/admin/app/components/gh-koenig-editor-lexical.js index 0d1822b249..5024faa153 100644 --- a/ghost/admin/app/components/gh-koenig-editor-lexical.js +++ b/ghost/admin/app/components/gh-koenig-editor-lexical.js @@ -109,7 +109,7 @@ export default class GhKoenigEditorReactComponent extends Component { onTitleKeydown(event) { const {editorAPI} = this; - if (!editorAPI) { + if (!editorAPI || event.originalEvent.isComposing) { return; }