InputMode #

Enum for HTML input modes.

API #

Enum values #

Name Value Description
Text 0 Standard input keyboard for the user's current locale.
None 1 No virtual keyboard. For when the page implements its own keyboard input control.
Decimal 2 Fractional numeric input keyboard containing the digits and decimal separator for the user's locale (typically . or ,). Devices may or may not show a minus key (-).
Numeric 3 Numeric input keyboard, but only requires the digits 09. Devices may or may not show a minus key.
Tel 4 A telephone keypad input, including the digits 09, the asterisk (*), and the pound (#) key. Inputs that *require* a telephone number should typically use InputType.Tel instead.
Search 5 A virtual keyboard optimized for search input. For instance, the return/submit key may be labeled "Search", along with possible other optimizations. Inputs that require a search query should typically use InputType.Search instead.
Email 6 A virtual keyboard optimized for entering email addresses. Typically includes the @ character as well as other optimizations. Inputs that require email addresses should typically use InputType.Email instead.
Url 7 A keypad optimized for entering URLs. This may have the / key more prominent, for example. Enhanced features could include history access and so on. Inputs that require a URL should typically use InputType.Url instead.
An unhandled error has occurred. Reload 🗙