fix(ui): prevent IME composition Enter from moving focus in new issue title

This commit is contained in:
Ken Shimizu
2026-03-11 11:57:46 +09:00
parent 3a003e11cc
commit 426b16987a

View File

@@ -681,7 +681,12 @@ export function NewIssueDialog() {
e.target.style.height = `${e.target.scrollHeight}px`;
}}
onKeyDown={(e) => {
if (e.key === "Enter" && !e.metaKey && !e.ctrlKey) {
if (
e.key === "Enter" &&
!e.metaKey &&
!e.ctrlKey &&
!e.nativeEvent.isComposing
) {
e.preventDefault();
descriptionEditorRef.current?.focus();
}