Skip to content

Commit c7f0b5a

Browse files
committed
fix: ignore IME on enter #226
1 parent 7a3212c commit c7f0b5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/composables/useKeyboard.js

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export default function useKeyboard (props, context, dep)
9292
case 'Enter':
9393
e.preventDefault()
9494

95+
if (e.keyCode === 229) {
96+
// ignore IME confirmation
97+
return
98+
}
99+
95100
if (activeIndex !== -1 && activeIndex !== undefined) {
96101
update([...iv.value].filter((v, k) => k !== activeIndex))
97102

0 commit comments

Comments
 (0)