絵文字ピッカーでエンターしたときに検索結果の先頭のもので確定できるように

This commit is contained in:
syuilo 2020-11-07 21:33:36 +09:00
parent 80c490a18b
commit 9d405b4581
1 changed files with 8 additions and 0 deletions

View File

@ -361,6 +361,14 @@ export default defineComponent({
this.chosen(exactMatchUnicode); this.chosen(exactMatchUnicode);
return true; return true;
} }
if (this.searchResultCustom.length > 0) {
this.chosen(this.searchResultCustom[0]);
return true;
}
if (this.searchResultUnicode.length > 0) {
this.chosen(this.searchResultUnicode[0]);
return true;
}
}, },
} }
}); });