Skip to content

Commit

Permalink
fix: ignore IME on enter #226
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Nov 18, 2022
1 parent 7a3212c commit c7f0b5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/composables/useKeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export default function useKeyboard (props, context, dep)
case 'Enter':
e.preventDefault()

if (e.keyCode === 229) {
// ignore IME confirmation
return
}

if (activeIndex !== -1 && activeIndex !== undefined) {
update([...iv.value].filter((v, k) => k !== activeIndex))

Expand Down

0 comments on commit c7f0b5a

Please sign in to comment.