inputmode

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// None No virtual keyboard. Used when custom input method is provided or when
	// standard keyboard is not appropriate for the input method.
	None = InputMode("none")

	// Text Standard text keyboard with letters, numbers, and symbols. Default keyboard
	// for general text input including sentences and mixed content.
	Text = InputMode("text")

	// Tel Telephone number keyboard with digits 0-9, *, #, and other phone-related keys.
	// Optimized for entering phone numbers and dial pad interactions.
	Tel = InputMode("tel")

	// Url URL keyboard with easy access to /, ., and common URL characters.
	// Includes suggestions and shortcuts for web address input.
	Url = InputMode("url")

	// Email Email keyboard with @ symbol and domain shortcuts (.com, .org, etc).
	// Optimized for email address entry with relevant character accessibility.
	Email = InputMode("email")

	// Numeric Numeric keyboard with digits 0-9 and basic mathematical operators.
	// For entering numbers, quantities, and simple numeric calculations.
	Numeric = InputMode("numeric")

	// Decimal Decimal number keyboard with digits and decimal point. Specifically designed
	// for monetary values, measurements, and decimal number input.
	Decimal = InputMode("decimal")

	// Search Search-optimized keyboard with search action button. May include search
	// suggestions and quick access to common search operators.
	Search = InputMode("search")
)

Variables for InputMode values

Functions

This section is empty.

Types

type InputMode

type InputMode []byte

InputMode Virtual keyboard configuration hint for optimal text input. Tells mobile devices which keyboard type to display based on expected input content and format.

func Custom

func Custom(value string) InputMode

Custom allows setting a custom InputMode value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL