Skip to content

Commit 245b38e

Browse files
authored
Merge pull request #3272 from ryotatake/fix-conflict-with-ime-inputs
fix: Handle Enter key event for IME inputs
2 parents df3e571 + 78cb85f commit 245b38e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ui/Dependency.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
}
5656
break;
5757
case 'Enter':
58+
if (e.isComposing) return;
59+
5860
if (searchIndex !== null) {
5961
e.preventDefault();
6062
addTask(searchResults[searchIndex]);

src/ui/EditTask.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
};
128128
129129
const _onDescriptionKeyDown = (e: KeyboardEvent) => {
130-
if (e.key === 'Enter') {
130+
if (e.key === 'Enter' && !e.isComposing) {
131131
e.preventDefault();
132132
if (formIsValid) _onSubmit();
133133
}

0 commit comments

Comments
 (0)