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

This commit is contained in:
syuilo 2020-11-07 10:56:38 +09:00
parent 3a7dbe9764
commit b79eed01e0

View file

@ -310,7 +310,7 @@ export default defineComponent({
this.chosen(exactMatchCustom);
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) {
this.chosen(exactMatchUnicode);
return true;