Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent corrections and completions in search field #20381

Merged
merged 1 commit into from Jun 7, 2021

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jun 7, 2021

In particular mobile browsers use correction mechanisms on input fields. Search will often be done with technical terms or even class/method/etc names that these correction mechanisms do not know, resulting in unwanted changes. This PR deactivates these correction mechanisms.

I've also reported this upstream to sphinx at sphinx-doc/sphinx#9307. See there for more background.

Our current theme uses customized templates, so we have to adapt this ourselves.

You can check that this is working by accessing the CI built docs with a mobile device, and compare that with the released docs.

Note: I know the theme may be changing in the near future. But even if this does not make it to a release, it would be a win for me. I often quickly search the dev-docs on mobile when responding to an issue and correction drives me nuts.

In particular mobile browsers use correction mechanisms on input fields.
Search will often be done with technical terms or even class/method/etc
names that these correction mechanisms do not know, resulting in
unwanted changes. This PR deactivates these correction mechanisms.

I've also reported this upstream to sphinx at
sphinx-doc/sphinx#9307. See there for more
background.

Our current theme uses customized templates, so we have to adapt this
ourselves.

You can also that this is working by accessing the CI built docs with
a mobile device, and compare that with the released docs.
@timhoffm timhoffm added this to the v3.4-doc milestone Jun 7, 2021
@QuLogic QuLogic merged commit 9c530bc into matplotlib:master Jun 7, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 7, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 7, 2021
@timhoffm timhoffm deleted the search-corrections branch June 7, 2021 21:59
QuLogic added a commit that referenced this pull request Jun 7, 2021
…381-on-v3.4.x

Backport PR #20381 on branch v3.4.x (Prevent corrections and completions in search field)
QuLogic added a commit that referenced this pull request Jun 8, 2021
…381-on-v3.4.2-doc

Backport PR #20381 on branch v3.4.2-doc (Prevent corrections and completions in search field)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants