# 打开表情符号弹出层时，应将焦点设置在表情符号搜索框上

**URL:** <https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309>\
**Category:** Feature\
**Created:** [2019年二月28日 02:27 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309 "2019-02-28T02:27:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)\
**Post date:** [2019年二月28日 02:27 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/1 "2019-02-28T02:27:43Z")

</div>

Most of the time when I click the emoji icon I just look for the one I want. Every once in a while I want to search though. When that happens I usually start typing right away, before I realize nothing is happening. Is there any reason not to focus on the input as soon as the emoji popover is opened so that typing will immediately narrow the emoji displayed?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2019年二月28日 11:42 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/2 "2019-02-28T11:42:36Z")

</div>

@maja can you make it so that whenever you click the more… in the emoji popup, it automatically focus on the textbox?

---

<div class="post-metadata">

**Author:** ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)\
**Post date:** [2019年二月28日 11:48 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/4 "2019-02-28T11:48:47Z")

</div>

Would that handle clicking the emoji icon from the editor menu too?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2019年二月28日 14:07 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/5 "2019-02-28T14:07:49Z")

</div>

Yes it should work as well 👍

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年二月28日 21:55 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/6 "2019-02-28T21:55:35Z")

</div>

Be careful with mobile or touch devices, as pushing a focus will pop the on-screen keyboard.

Not an issue if the composer already has focus, of course.

---

<div class="post-metadata">

**Author:** ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)\
**Post date:** [2019年五月10日 10:46 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/7 "2019-05-10T10:46:56Z")

</div>

Added in:

[https://github.com/discourse/discourse/commit/12c37ada2e37bc51b5f503479d7da5377d5319ab](https://github.com/discourse/discourse/commit/12c37ada2e37bc51b5f503479d7da5377d5319ab)

---

<div class="post-metadata">

**Author:** ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)\
**Post date:** [2019年五月10日 10:47 UTC](https://meta.discourse.org/t/opening-emoji-popover-should-focus-on-emoji-search-box/110309/8 "2019-05-10T10:47:07Z")

</div>


