Make keys work as intended when there is no suggestions

このコミットが含まれているのは:
tusooa 2023-01-21 14:50:57 -05:00
コミット 5478192e20
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 7B467EDE43A08224
1個のファイルの変更6行の追加2行の削除

ファイルの表示

@ -395,7 +395,9 @@ const EmojiInput = {
} else if (this.highlighted < -1) {
this.highlighted = len - 1
}
e.preventDefault()
if (len > 0) {
e.preventDefault()
}
},
cycleForward (e) {
const len = this.suggestions.length || 0
@ -405,7 +407,9 @@ const EmojiInput = {
this.highlighted = -1
this.input.focus()
}
e.preventDefault()
if (len > 0) {
e.preventDefault()
}
},
scrollIntoView () {
const rootRef = this.$refs.picker.$el