ubports / morph-browser

Moved to https://gitlab.com/ubports/core/morph-browser
https://gitlab.com/ubports/core/morph-browser
GNU General Public License v3.0
45 stars 35 forks source link

HTML5 datetime input types are not handled properly. #487

Open UniversalSuperBox opened 3 years ago

UniversalSuperBox commented 3 years ago

On Android and desktop Firefox, date and time input boxes are automatically given some special input characteristics. For example, the "localtime" HTML5 input type is given a date and time spinner on Android:

Android browser showing a "set date and time" page after tapping a "localtime" input box

Morph doesn't do this. Instead, it takes on QtWebEngine's default behavior. In the version of QtWebEngine we are using, this is to display a simple up or down arrow.

Morph Browser displaying up and down arrows on a focused Time input

This is an awful way to enter a time.

It's possible that a newer version of QtWebEngine includes better date and time inputs. It's possible that we will need to create the input methods ourselves. Either way, the issue had to be filed.

Keneda-ut commented 3 years ago

Thanks for creating issue after i bothered you here with my issue : https://github.com/ubports/morph-browser/issues/468 That would be indeed great that morph has a better handle of those forms, for example, using directly numkeys like it is possible on Firefox (PC version).