summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-07 21:33:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-07 21:33:36 +0900
commit9d405b45812438841be6496ec4622264ca886a4c (patch)
tree357c5b20be4dbbd52bf9a564caf368383e078508 /src/client/components
parent絵文字ピッカーでAND検索に対応 (diff)
downloadmisskey-9d405b45812438841be6496ec4622264ca886a4c.tar.gz
misskey-9d405b45812438841be6496ec4622264ca886a4c.tar.bz2
misskey-9d405b45812438841be6496ec4622264ca886a4c.zip
絵文字ピッカーでエンターしたときに検索結果の先頭のもので確定できるように
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/emoji-picker.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/components/emoji-picker.vue b/src/client/components/emoji-picker.vue
index e38206f140..247e59e8a1 100644
--- a/src/client/components/emoji-picker.vue
+++ b/src/client/components/emoji-picker.vue
@@ -361,6 +361,14 @@ export default defineComponent({
this.chosen(exactMatchUnicode);
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;
+ }
},
}
});