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

[4.0] Search inputmode #27426

Merged
merged 1 commit into from
Jan 7, 2020
Merged

[4.0] Search inputmode #27426

merged 1 commit into from
Jan 7, 2020

Conversation

brianteeman
Copy link
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
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
Contributor Author

Thanks - happy to backport it

@brianteeman brianteeman deleted the inputmode branch January 7, 2020 12:51
@@ -287,7 +286,7 @@ public function save($data)
$isNew = true;

// Include the plugins for the save events.
PluginHelper::importPlugin($this->events_map['save']);
\JPluginHelper::importPlugin($this->events_map['save']);
Copy link
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
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