絵文字ピッカーの検索に絵文字をペーストしたとき確定されないのを修正

This commit is contained in:
syuilo 2020-11-07 10:56:38 +09:00
parent 3a7dbe9764
commit b79eed01e0
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ export default defineComponent({
this.chosen(exactMatchCustom); this.chosen(exactMatchCustom);
return true; return true;
} }
const exactMatchUnicode = this.emojilist.find(e => e.name === q); const exactMatchUnicode = this.emojilist.find(e => e.char === q || e.name === q);
if (exactMatchUnicode) { if (exactMatchUnicode) {
this.chosen(exactMatchUnicode); this.chosen(exactMatchUnicode);
return true; return true;