Merge pull request #578 from kaonash/fix_ime_composition_enter_in_new_issue_dialog

fix(ui): prevent IME composition Enter from moving focus in new issue title
This commit is contained in:
Dotta
2026-03-11 21:14:39 -05:00
committed by GitHub

View File

@@ -699,7 +699,12 @@ export function NewIssueDialog() {
}}
readOnly={createIssue.isPending}
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();
}