fix(ui): prevent IME composition Enter from moving focus in new issue title
This commit is contained in:
parent
3a003e11cc
commit
426b16987a
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue