Page MenuHomePhabricator

Search input should get the input focus automatically
Closed, ResolvedPublic

Description

When tapping the "New translation" button in Section translation, the search view is shown. However, the input focus is not automatically in the search bar:

test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 5_SE).png (568×320 px, 16 KB)

This requires users to tap on it to be able to type. This ticket proposes for the input focus to automatically be in the search input. In this way the workflow will be more fluent.

The autofocus HTML attribute may be useful for this.

Event Timeline

Change 696023 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] SX: Focus the input field while opening search dialog

https://gerrit.wikimedia.org/r/696023

Change 696023 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Focus the input field while opening search dialog

https://gerrit.wikimedia.org/r/696023