# Auto focus cursor in search box on mobile

**URL:** https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488
**Category:** Feature
**Created:** [April 30, 2016, 4:41am UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488 "2016-04-30T04:41:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 30, 2016, 4:41am UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/1 "2016-04-30T04:41:12Z")

</div>

When users tap on magnifying glass on mobile, It would provide a smoother experience if we could auto-focus the cursor in the search box and bring up the keyboard. Any issues with this?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [April 30, 2016, 5:08am UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/2 "2016-04-30T05:08:58Z")

</div>

What device/browser? Focus is set properly for me, HTC One M8, Chrome beta.

---

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 30, 2016, 11:59am UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/3 "2016-04-30T11:59:26Z")

</div>

That’s good to hear. i am on an iPhone.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [April 30, 2016, 6:42pm UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/4 "2016-04-30T18:42:03Z")

</div>

Same problem on iPad.  
[MusicBrainz community](http://community.metabrainz.org) which is maybe late on version updates, does focus the search field after magnifying glass click. But not meta, here, indeed.

---

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [April 30, 2016, 8:13pm UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/5 "2016-04-30T20:13:54Z")

</div>

Clicking the search icon automatically places the cursor in the search box on my BlackBerry. My keyboard is always up.

---

<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: [April 30, 2016, 9:15pm UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/6 "2016-04-30T21:15:52Z")

</div>

Is this a header regression @eviltrout?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 2, 2016, 6:45pm UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/7 "2016-05-02T18:45:47Z")

</div>

No, it was removed some time ago because iOS has terrible scrolling issues when you auto focus on elements that have fixed positioning. In general any auto focus on fixed items is disabled everywhere on the site.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [May 5, 2016, 6:59am UTC](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/8 "2016-05-05T06:59:36Z")

</div>

It does not work that bad if you go to the link I posted earlier, choose a topic with many replies, scroll all the way down then click the magnifying glass.  
It will scroll up and focus text field, keyboard appears.  
I am on iPad though, maybe it does not work on iPhone, any users could test?  
Maybe it bugs when you are all the way down a gigantic topic where the top posts are not loaded?
