Skip to content

[4.0] Search inputmode#27426

Merged
wilsonge merged 1 commit intojoomla:4.0-devfrom
brianteeman:inputmode
Jan 7, 2020
Merged

[4.0] Search inputmode#27426
wilsonge merged 1 commit intojoomla:4.0-devfrom
brianteeman:inputmode

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

Mobile and touch devices will load a different keyboard depending on the inputmode. This is already implemented for several fields eg url and email

This PR enables it for search fields

As search fields are not a separate field type but type="text" we either have to create a new field type or it has to be added via the form xml. Support for the xml option was (surprisingly) already implemented so I just had to add the inputmode=search to the xml.

To test this you will need either a mobile device or a touch enabled computer with a virtual keyboard.

When you enter the search field you will see a slightly different keyboard than normal - the actual layout of which is dependent on your device. On my touch screen it looks like this

image

Mobile and touch devices will load a different keyboard depending on the inputmode. This is already implemented for several fields eg url and email

This PR enables it for search fields

As search fields are not a separate field type but type="text" we either have to create a new field type or it has to be added via the form xml. Support for the xml option  was (surprisingly) already implemented so I just had to add the inputmode=search to the xml.

To test this you will need either a mobile device or a touch enabled computer with a virtual keyboard.

When you enter the search field you will see a slightly different keyboard than normal - the actual layout of which is dependent on your device. On my touch screen it looks like this
@wilsonge wilsonge merged commit 59b8a31 into joomla:4.0-dev Jan 7, 2020
@wilsonge
Copy link
Copy Markdown
Contributor

wilsonge commented Jan 7, 2020

This is one of those ones it's probably worth backporting into staging.

Thanks though!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Jan 7, 2020
@brianteeman
Copy link
Copy Markdown
Contributor Author

Thanks - happy to backport it

@brianteeman brianteeman deleted the inputmode branch January 7, 2020 12:51

// Include the plugins for the save events.
PluginHelper::importPlugin($this->events_map['save']);
\JPluginHelper::importPlugin($this->events_map['save']);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no!

brianteeman added a commit to brianteeman/joomla-cms that referenced this pull request Feb 4, 2020
Mobile and touch devices will load a different keyboard depending on the inputmode. This is already implemented for several fields eg url and email

This PR enables it for search fields

As search fields are not a separate field type but type="text" we either have to create a new field type or it has to be added via the form xml. Support for the xml option  was (surprisingly) already implemented so I just had to add the inputmode=search to the xml.

To test this you will need either a mobile device or a touch enabled computer with a virtual keyboard.

When you enter the search field you will see a slightly different keyboard than normal - the actual layout of which is dependent on your device. On my touch screen it looks like this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants