Implement behaviour for purposes
The Wayland text-input protocol specifies several purposes modifying the behaviour of the input. Only one may be selected for a given field in a given moment:
The content purpose allows to specify the primary purpose of a text input.
This allows an input method to show special purpose input panels with extra characters or to disallow some characters.
- default input, allowing all characters
- allow only alphabetic characters
- allow only digits
- input a number (including decimal separator and sign)
- input a phone number
- input an URL
- input an email address
- input a name of a person
- input a password (combine with sensitive_data hint)
- input is a numeric password (combine with sensitive_data hint)
- input a date
- input a time
- input a date and time
- input for a terminal
These may involve diferent layouts or behaviours. Not all have to be unique, but a fallback should be available for the unspecified ones.
The phone number one is already present.