# Set focus to textbox when searching on mobile

**URL:** https://meta.discourse.org/t/set-focus-to-textbox-when-searching-on-mobile/51401
**Category:** UX
**Created:** [11 Octubre, 2016 14:04 UTC](https://meta.discourse.org/t/set-focus-to-textbox-when-searching-on-mobile/51401 "2016-10-11T14:04:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [11 Octubre, 2016 14:04 UTC](https://meta.discourse.org/t/set-focus-to-textbox-when-searching-on-mobile/51401/1 "2016-10-11T14:04:30Z")

</div>

Searching on mobile requires two taps: the search button, then the text field.

Can focus be set to the textfield after the search button is pressed? This seems to be the behaviour on desktop.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [11 Octubre, 2016 14:37 UTC](https://meta.discourse.org/t/set-focus-to-textbox-when-searching-on-mobile/51401/2 "2016-10-11T14:37:00Z")

</div>

This is a dup of

> [@Auto focus cursor in search box on mobile](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488):
>
> 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?

But from this, it is intentionally not doing it.

> [@Auto focus cursor in search box on mobile](https://meta.discourse.org/t/auto-focus-cursor-in-search-box-on-mobile/43488/7):
>
> 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: ![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: [11 Octubre, 2016 19:21 UTC](https://meta.discourse.org/t/set-focus-to-textbox-when-searching-on-mobile/51401/3 "2016-10-11T19:21:27Z")

</div>

Is this really a problem on mobile full page search? I doubt it as there is nothing to scroll when you tap on search. We should place focus here on mobile.

(at least when triggering the _first_ search. after you have results, there may be something to scroll?)
