diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-07 21:33:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-07 21:33:36 +0900 |
| commit | 9d405b45812438841be6496ec4622264ca886a4c (patch) | |
| tree | 357c5b20be4dbbd52bf9a564caf368383e078508 /src/client/components | |
| parent | 絵文字ピッカーでAND検索に対応 (diff) | |
| download | misskey-9d405b45812438841be6496ec4622264ca886a4c.tar.gz misskey-9d405b45812438841be6496ec4622264ca886a4c.tar.bz2 misskey-9d405b45812438841be6496ec4622264ca886a4c.zip | |
絵文字ピッカーでエンターしたときに検索結果の先頭のもので確定できるように
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/emoji-picker.vue | 8 |
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; + } }, } }); |