Extras
VirtualKeyboard
BitVirtualKeyboard is an on-screen keyboard for touch screens, kiosks and points of sale. Its layouts are data: the built-in language layouts (English, Persian, Arabic, Hebrew, German, French, Spanish, Russian, Turkish) in a Full and a Compact form, the purpose pads (phone, PIN, decimal, calculator, POS, ...), or a layout of your own written in a one-line-per-row shorthand, as objects or as JSON. It types into a bound Value, into one input, or into whichever opted-in input has the focus, and its keys act in the browser, so typing never waits for a round trip.
Notes
Usage
Every example is live. Open its code to see exactly what produced the component running underneath.
Basic
Target
FollowFocus
Purpose
Languages
Form
Shorthand layout
Object layout
Customizing a built-in
JSON layout
Events
Secure & Scramble
KeyTemplate
Disabled
Size
Style & Class
RTL
CSS variables
The public custom properties this component reads off its root, for what no parameter covers.
Every variable is read with a fallback and never declared by the component, so it inherits like any other custom property:
set one on :root (or in a [bit-theme] block) to restyle every instance, on any ancestor to restyle the ones inside it,
or on the Style of one instance to restyle it - and any instance nested inside it, which inherits the value too; a parameter changes one alone,
as does the real CSS property on the instance's Style / Styles when that property does not inherit (opacity: 1 keeps
one disabled instance undimmed without undimming a disabled one inside it), while an inherited one such as color or
font-family also reaches the nested instances that do not set it themselves. Leave a variable unset and the component
falls back to the theme token beside it.
BitVirtualKeyboard CSS variables
| Name | Default value | Description |
|---|---|---|
| --bit-VirtualKeyboard-background | var(--bit-clr-bg-sec) | Fill of the panel the keys sit on. |
| --bit-VirtualKeyboard-padding | spacing(1) | Room around the keys. |
| --bit-VirtualKeyboard-gap | spacing(0.75) | Room between the keys. |
| --bit-VirtualKeyboard-key-height | max(44px, spacing(5.5)) | Height of a row of keys. The Size parameter wins over it. |
| --bit-VirtualKeyboard-radius | var(--bit-shp-radius-button) | Corner radius of a key. |
| --bit-VirtualKeyboard-font-size | var(--bit-tg-fs-lg) | Size of a key's label. |
| --bit-VirtualKeyboard-key-background | var(--bit-clr-bg-pri) | Fill of a character key. |
| --bit-VirtualKeyboard-key-color | var(--bit-clr-fg-pri) | Label of a key. |
| --bit-VirtualKeyboard-key-hover-background | var(--bit-clr-bg-pri-hover) | Fill of a key under the pointer. |
| --bit-VirtualKeyboard-key-pressed-background | var(--bit-clr-bg-pri-active) | Fill of a key while it is pressed. |
| --bit-VirtualKeyboard-function-key-background | var(--bit-clr-bg-ter) | Fill of a function or modifier key. |
| --bit-VirtualKeyboard-active-key-background | var(--bit-clr-pri-light) | Fill of a latched or locked modifier, and of the selected long-press alternate. |
| --bit-VirtualKeyboard-primary-key-background | var(--bit-clr-pri) | Fill of the Enter key. |
| --bit-VirtualKeyboard-primary-key-color | var(--bit-clr-pri-text) | Label of the Enter key. |
| --bit-VirtualKeyboard-shadow | var(--bit-box-shadow-sheet) | Shadow of a docked panel. |
| --bit-VirtualKeyboard-focus-color | var(--bit-clr-pri-focus) | Focus ring of a key. |
API
Every parameter, public member, sub-class and enum this component exposes.
BitVirtualKeyboard parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| AllowedCharacters | string? | null | The characters the keyboard may type, as the body of a regular-expression character class (e.g. "0-9.,"). A character outside it is not typed. |
| AutoShift | bool | true | Gives a layout that has a Shift key but no shift layer one derived from its letters, upper-cased in the culture of the layout. |
| Classes | BitVirtualKeyboardClassStyles? | null | Custom CSS classes for the different parts of the virtual keyboard. |
| CompactBreakpoint | double | 640 | The width of the keyboard, in CSS pixels, under which an Auto Form renders the Compact layout. |
| Culture | CultureInfo? | null | The culture of the decimal and date separators, the case mapping and the default language. Default: the current culture. |
| DefaultOpen | bool? | null | Whether a docked keyboard starts open, when Open is not bound. |
| DefaultValue | string? | null | The text the keyboard starts with, when Value is not bound. |
| Digits | BitVirtualKeyboardDigits | BitVirtualKeyboardDigits.Latin | The digits the purpose pads type, and the decimal separator they use. |
| EnterBehavior | BitVirtualKeyboardEnterBehavior | BitVirtualKeyboardEnterBehavior.Auto | What the Enter key does. |
| FollowFocus | bool | false | Types into whichever input matching TargetSelector has the focus (by default the inputs carrying a data-bit-vkb attribute), opening a docked keyboard as one gets it and closing it as it leaves. |
| Form | BitVirtualKeyboardForm | BitVirtualKeyboardForm.Auto | The form of the language layouts: Full (hardware-like), Compact (phone-like), or Auto, Compact under CompactBreakpoint. |
| Haptics | bool | false | Vibrates briefly on a key press, where the device can (not in Safari or desktop Firefox). |
| KeyTemplate | RenderFragment<BitVirtualKeyboardKeyContext>? | null | Renders the content of every key; the key itself stays the keyboard's. |
| Language | string? | null | The id of the language layout ("en", "fa", ...). Default: the language of the culture, if there is a layout of it, else "en". |
| Languages | IReadOnlyList<string>? | null | The ids of the language layouts the language key cycles through; with fewer than two there is no language key. |
| Layout | BitVirtualKeyboardLayout? | null | A layout of the page's own, which wins over Language and the purpose pads. |
| LayoutSelector | Func<BitVirtualKeyboardLayoutContext, BitVirtualKeyboardLayout?>? | null | Picks the layout for what is being typed; a null result falls back to the built-in choice. |
| LongPressDelay | int | 500 | The milliseconds a key is held before its long-press alternates open. |
| MaxLength | int? | null | The longest text the keyboard types into its own Value, in UTF-16 code units. An input it types into keeps to its own maxlength. |
| Mode | BitVirtualKeyboardMode | BitVirtualKeyboardMode.Inline | Where the keyboard is shown: Inline in the page, or Docked to the bottom of the viewport. |
| MultiTapTimeout | int | 1000 | The milliseconds within which a repeated tap cycles a multitap key. |
| OnCommand | EventCallback<BitVirtualKeyboardCommandArgs> | Raised by a key whose action is Custom (the Qty and Void keys of the POS pad, a {cmd:...} key). | |
| OnEnter | EventCallback | Raised when Enter is pressed, after what it does. | |
| OnInput | EventCallback<string?> | Raised when the text changes: the Value, or the value of the input the keyboard types into. Never raised in secure mode. | |
| OnKeyPress | EventCallback<BitVirtualKeyboardKeyPressArgs> | Raised before a key acts; a handler can cancel it or replace what it types. While it has a handler, every key waits for it. | |
| OnLayerChange | EventCallback<string> | Raised when the active layer changes, with its id. | |
| OnLayoutChange | EventCallback<BitVirtualKeyboardLayout> | Raised when the layout changes (the language key, the purpose, the form). | |
| Open | bool | false | Whether a docked keyboard is shown. Two-way bindable. |
| Purpose | BitVirtualKeyboardPurpose? | null | What is being typed, which picks the layout. Default: what the input typed into says (its data-bit-vkb, inputmode and type attributes), else Text. |
| RepeatDelay | int | 500 | The milliseconds a repeating key is held before it starts repeating; 0 turns repeating off. |
| RepeatInterval | int | 50 | The milliseconds between the repeats of a held key. |
| ReserveSpace | bool | true | Keeps the height of an open docked keyboard in the page, so the page can be scrolled above it. |
| Scramble | bool | false | Shuffles the digit keys each time the keyboard opens or attaches to an input (for a PIN). |
| Secure | bool | false | Secure mode: no pressed paint, no preview, no sound, no announcement, and no typed text in OnKeyPress or OnInput. A bound Value still takes the text typed into it, through ValueChanged. Also on for a password input. |
| ShowKeyPreview | bool | true | Shows an enlarged copy of a character key while it is pressed. |
| Size | BitSize? | null | The size of the keys: Small (24px, the smallest WCAG target), Medium (44px) or Large (64px, for kiosks). The Size wins over --bit-VirtualKeyboard-key-height. |
| Sound | bool | false | Clicks on a key press. |
| Strings | BitVirtualKeyboardStrings? | null | The words of the keyboard: the names of its keys and what it announces. |
| Styles | BitVirtualKeyboardClassStyles? | null | Custom CSS styles for the different parts of the virtual keyboard. |
| Target | ElementReference? | null | The input or textarea the keyboard types into. |
| TargetSelector | string? | null | The CSS selector of the inputs FollowFocus types into. Default: the inputs carrying a data-bit-vkb attribute, whose value may name a purpose (data-bit-vkb="pin"). |
| Value | string? | null | The text the keyboard types into when it has no input to type into. Two-way bindable. |
BitVirtualKeyboard public members
| Name | Type | Default value | Description |
|---|---|---|---|
| ActiveLayer | string? | The id of the active layer, as last reported by the keyboard. | |
| ActiveLayout | BitVirtualKeyboardLayout? | The layout the keyboard shows. |
BitComponentBase parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| AriaLabel | string? | null | Gets or sets the accessible label for the component, used by assistive technologies. |
| Class | string? | null | Gets or sets the CSS class name(s) to apply to the rendered element. |
| Dir | BitDir? | null | Gets or sets the text directionality for the component's content. |
| Disabled | bool | false | Gets or sets a value indicating whether the component is disabled and cannot respond to user interaction. |
| ForceAnimation | bool | false | Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested. |
| HtmlAttributes | Dictionary<string, object> | new Dictionary<string, object>() | Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters. An attribute written on the component wins over an entry of the same name. |
| Id | string? | null | Gets or sets the unique identifier for the component's root element. |
| Style | string? | null | Gets or sets the CSS style string to apply to the rendered element. |
| TabIndex | string? | null | Gets or sets the tab order index for the component when navigating with the keyboard. |
| Visibility | BitVisibility | BitVisibility.Visible | Gets or sets the visibility state (visible, hidden, or collapsed) of the component. |
BitComponentBase public members
| Name | Type | Default value | Description |
|---|---|---|---|
| UniqueId | Guid | Guid.NewGuid() | Gets the readonly unique identifier for the component's root element, assigned when the component instance is constructed. |
| RootElement | ElementReference | Gets the reference to the root HTML element associated with this component. |
BitVirtualKeyboardLayout properties
| Name | Type | Default value | Description |
|---|---|---|---|
| Id | string | "" | The id of the layout: a BCP 47 language tag, with a CLDR "-t-k0-" variant where a language has more than one layout, or "x-..." for a purpose pad. |
| Name | string | "" | The name of the layout, as its own language writes it; it also names the keyboard where it has no AriaLabel. |
| Indicator | string? | null | The short text the language key shows for this layout. |
| Culture | string? | null | The culture whose case mapping the derived shift and caps layers use. |
| Direction | BitDir | BitDir.Ltr | The direction of the text the layout types. The grid of keys itself is never mirrored. |
| Form | BitVirtualKeyboardForm | BitVirtualKeyboardForm.Full | Whether this is the Full or the Compact form of a language layout. |
| CompactOf | string? | null | For a Compact layout, the id of the Full layout it is the compact form of. |
| Keys | Dictionary<string, BitVirtualKeyboardKey> | [] | The key bag: keys by id, which the rows reference by name ({id}) or, for a character key, by the text it types. |
| Layers | List<BitVirtualKeyboardLayer> | [] | The layers of the layout; the first is the base layer. |
| LongPress | Dictionary<string, string> | [] | The long-press alternates of the character keys, by the text the key types, as a space-separated list. |
| DeadKeys | Dictionary<string, Dictionary<string, string>> | [] | The dead keys, by marker: what each character types after the dead key, the entry of a space being what the dead key types on its own. |
| Displays | Dictionary<string, string> | [] | The keycap labels, by key id or by the text a key types. |
BitVirtualKeyboardLayer properties
| Name | Type | Default value | Description |
|---|---|---|---|
| Id | string | "" | The id of the layer (base, shift, caps, altgr, symbols, ...), which layer keys switch to. |
| Name | string? | null | The name of the layer, announced when it is switched to and shown on the keys that switch to it. |
| Modifiers | BitVirtualKeyboardModifiers | None | The modifier state that selects this layer. |
| Rows | List<BitVirtualKeyboardRow> | [] | The rows of the layer, top to bottom; a row can be given as a shorthand string. |
BitVirtualKeyboardKey properties
| Name | Type | Default value | Description |
|---|---|---|---|
| Id | string? | null | The id the key is referenced by: a bag id, or the name of a built-in key. |
| Output | string? | null | The text the key types; it can be more than one character. |
| Label | string? | null | The keycap. Default: the layout's Displays entry of the key, else the text it types. |
| Hint | string? | null | A small second label in a corner of the key. |
| Icon | BitIconInfo? | null | The icon of the key, in place of a text label. |
| IconName | string? | null | The name of the bit icon of the key, in place of a text label. |
| AriaLabel | string? | null | The accessible name of the key; it has to contain the visible label. |
| Action | BitVirtualKeyboardKeyAction? | null | What the key does. Default: Character, which types its Output. |
| Layer | string? | null | The layer a SwitchLayer key switches to. |
| NextLayer | string? | null | The layer to go back to after the key has typed. |
| DeadKey | string? | null | The marker a DeadKey key sets. |
| Command | string? | null | The command a Custom key raises OnCommand with. |
| Width | double? | null | The width of the key, in key units, in steps of 0.25. Default: 1. |
| Height | int? | null | The number of rows the key spans downwards. Default: 1. |
| Offset | double? | null | The empty room before the key, in key units. Default: 0. |
| Stretch | bool? | null | Whether the key takes the room its row leaves. |
| Gap | bool? | null | Whether the key is an invisible, inert spacer of its width. |
| Blank | bool? | null | Whether the key is a visible but inert key. |
| LongPress | List<string>? | null | The alternates a long press of the key offers. |
| LongPressDefault | string? | null | The alternate the long-press popup starts on. |
| MultiTap | List<string>? | null | The texts repeated taps of the key cycle through. |
| Repeat | bool? | null | Whether the key repeats while held. |
| Preview | bool? | null | Whether a press of the key shows the enlarged-key bubble. |
| Purposes | List<BitVirtualKeyboardPurpose>? | null | The purposes the key is there for; it is left out for any other. |
| Variations | Dictionary<BitVirtualKeyboardPurpose, BitVirtualKeyboardKey>? | null | What changes on the key for a purpose. |
| Scramble | bool? | null | Whether the key takes part in scrambling. Default: the keys typing a single digit do. |
| Class | string? | null | Custom CSS classes of the key. |
| Style | string? | null | Custom CSS styles of the key. |
BitVirtualKeyboardKeyPressArgs properties
| Name | Type | Default value | Description |
|---|---|---|---|
| KeyId | string | "" | The id of the key: its bag id, its built-in name, or the text it types. Empty for a key that types a character in secure mode. |
| Action | BitVirtualKeyboardKeyAction | Character | What the key does. |
| Text | string? | null | What the key will type; a handler may replace it. Null in secure mode. |
| Layer | string | "" | The id of the layer the key is on. |
| Cancel | bool | false | Set it to true to make the key do nothing. |
BitVirtualKeyboardCommandArgs properties
| Name | Type | Default value | Description |
|---|---|---|---|
| Command | string | "" | The command of the key. |
| KeyId | string | "" | The id of the key. |
BitVirtualKeyboardStrings properties
| Name | Type | Default value | Description |
|---|---|---|---|
| RoleDescription | string | "virtual keyboard" | What the keyboard is announced as, after its name. |
| Backspace | string | "Backspace" | The name of the Backspace key. |
| Delete | string | "Delete" | The name of the Delete key. |
| Enter | string | "Enter" | The name of the Enter key. |
| Done | string | "Done" | The name of the Enter key of an input whose enterkeyhint is done. |
| Go | string | "Go" | The name of the Enter key of an input whose enterkeyhint is go. |
| Next | string | "Next" | The name of the Enter key of an input whose enterkeyhint is next. |
| Previous | string | "Previous" | The name of the Enter key of an input whose enterkeyhint is previous. |
| Search | string | "Search" | The name of the Enter key of a search, or of an input whose enterkeyhint is search. |
| Send | string | "Send" | The name of the Enter key of an input whose enterkeyhint is send. |
| Space | string | "Space" | The name of the space bar. |
| Tab | string | "Tab" | The name of the Tab key. |
| ShiftTab | string | "Shift Tab" | The name of the Shift+Tab key. |
| Shift | string | "Shift" | The name of the Shift key. |
| CapsLock | string | "Caps lock" | The name of the Caps Lock key. |
| AltGr | string | "AltGr" | The name of the AltGr key. |
| Symbols | string | "Symbols" | The name of the symbols layer, and of the key that switches to it. |
| MoreSymbols | string | "More symbols" | The name of the second symbols layer. |
| Letters | string | "Letters" | The name of the base layer, and of the key that switches back to it. |
| NextLanguage | string | "Next language" | The name of the key that moves to the next language. |
| Hide | string | "Hide keyboard" | The name of the key that closes a docked keyboard. |
| Clear | string | "Clear" | The name and label of the key that empties the value. |
| Accept | string | "Accept" | The name and label of the key that commits the value. |
| Cancel | string | "Cancel" | The name and label of the key that puts the value back. |
| ArrowLeft | string | "Left" | The name of the left arrow key. |
| ArrowRight | string | "Right" | The name of the right arrow key. |
| ArrowUp | string | "Up" | The name of the up arrow key. |
| ArrowDown | string | "Down" | The name of the down arrow key. |
| Home | string | "Home" | The name and label of the Home key. |
| End | string | "End" | The name and label of the End key. |
| Qty | string | "Qty" | The name and label of the quantity key of the POS pad. |
| Void | string | "Void" | The name and label of the void key of the POS pad. |
| Total | string | "Total" | The name and label of the total key of the POS pad. |
| Zwnj | string | "zero-width non-joiner" | The name of the zero-width non-joiner key. |
| Zwj | string | "zero-width joiner" | The name of the zero-width joiner key. |
| Lrm | string | "left-to-right mark" | The name of the left-to-right mark key. |
| Rlm | string | "right-to-left mark" | The name of the right-to-left mark key. |
| Nbsp | string | "no-break space" | The name of the no-break space key. |
| ShiftOn | string | "Shift on" | What is announced when Shift is latched. |
| ShiftLocked | string | "Shift locked" | What is announced when Shift is locked. |
| ShiftOff | string | "Shift off" | What is announced when Shift is released. |
| CapsLockOn | string | "Caps lock on" | What is announced when Caps Lock is turned on. |
| CapsLockOff | string | "Caps lock off" | What is announced when Caps Lock is turned off. |
| LayerAnnouncement | string | "{0} keyboard" | What is announced when the layer changes; {0} is the name of the layer. |
| Alternates | string | "Alternates for {0}" | The name of the popup of long-press alternates; {0} is the key it is opened from. |
BitVirtualKeyboardClassStyles properties
| Name | Type | Default value | Description |
|---|---|---|---|
| Root | string? | null | Custom CSS classes/styles for the root element of the BitVirtualKeyboard. |
| Panel | string? | null | Custom CSS classes/styles for the panel of the keys (fixed to the bottom of the viewport in Docked mode) of the BitVirtualKeyboard. |
| Layers | string? | null | Custom CSS classes/styles for the wrapper of the layers of the BitVirtualKeyboard. |
| Layer | string? | null | Custom CSS classes/styles for each layer of keys of the BitVirtualKeyboard. |
| Key | string? | null | Custom CSS classes/styles for each key of the BitVirtualKeyboard. |
| CharacterKey | string? | null | Custom CSS classes/styles for each key that types a character (and the space bar) of the BitVirtualKeyboard. |
| FunctionKey | string? | null | Custom CSS classes/styles for each function key (Backspace, Tab, the layer keys, ...) of the BitVirtualKeyboard. |
| ModifierKey | string? | null | Custom CSS classes/styles for each modifier key (Shift, Caps Lock, AltGr) of the BitVirtualKeyboard. |
| ActiveKey | string? | null | Custom CSS classes/styles for a key while it is active (a latched or locked modifier, a pending dead key, a held physical key); applied by the script of the BitVirtualKeyboard. |
| PrimaryKey | string? | null | Custom CSS classes/styles for the Enter key of the BitVirtualKeyboard. |
| Gap | string? | null | Custom CSS classes/styles for each invisible spacer of the BitVirtualKeyboard. |
| Blank | string? | null | Custom CSS classes/styles for each visible but inert key of the BitVirtualKeyboard. |
| KeyLabel | string? | null | Custom CSS classes/styles for the label of each key of the BitVirtualKeyboard. |
| KeyHint | string? | null | Custom CSS classes/styles for the small second label of each key of the BitVirtualKeyboard. |
| KeyIcon | string? | null | Custom CSS classes/styles for the icon of each key of the BitVirtualKeyboard. |
| Popup | string? | null | Custom CSS classes/styles for the popup of long-press alternates of the BitVirtualKeyboard. |
| PopupKey | string? | null | Custom CSS classes/styles for each alternate of the long-press popup; applied by the script of the BitVirtualKeyboard. |
| Preview | string? | null | Custom CSS classes/styles for the enlarged-key bubble shown while a key is pressed of the BitVirtualKeyboard. |
| LiveRegion | string? | null | Custom CSS classes/styles for the visually hidden live region that announces the layer and modifier changes of the BitVirtualKeyboard. |
BitVirtualKeyboardMode enum
| Name | Value | Description |
|---|---|---|
| Inline | 0 | Rendered in place, in the flow of the page, and always shown. |
| Docked | 1 | Fixed to the bottom of the viewport, shown while it is Open. |
BitVirtualKeyboardForm enum
| Name | Value | Description |
|---|---|---|
| Auto | 0 | Compact under the compact breakpoint of the keyboard's width, Full above it. |
| Full | 1 | The hardware-like form: the number row, every symbol on its own key, the AltGr layer. |
| Compact | 2 | The phone-like form: the letters, with the digits and symbols on layers of their own. |
BitVirtualKeyboardPurpose enum
| Name | Value | Description |
|---|---|---|
| Text | 0 | Text: the language layout. |
| Search | 1 | A search: the language layout, with a Search key. |
| 2 | An email address: the language layout with @ and .com keys. | |
| Url | 3 | A URL: the language layout with / and .com keys. |
| Tel | 4 | A telephone number: the phone pad. |
| Numeric | 5 | Digits: the numeric pad. |
| Decimal | 6 | A decimal number: the decimal pad. |
| SignedDecimal | 7 | A signed decimal number: the decimal pad with a minus key. |
| Pin | 8 | A PIN: the PIN pad. |
| Calculator | 9 | A calculation: the calculator pad. |
| Pos | 10 | An amount at a point of sale: the POS pad. |
| Hex | 11 | A hexadecimal number: the hex pad. |
| Date | 12 | A date: the date pad. |
| Time | 13 | A time: the time pad. |
| Iban | 14 | An IBAN: digits and capital letters. |
| Alphabetic | 15 | Letters in alphabetical order: the kiosk grid. |
| Atm | 16 | An ATM-style PIN: the ATM pad. |
BitVirtualKeyboardDigits enum
| Name | Value | Description |
|---|---|---|
| Latin | 0 | 0-9. |
| ArabicIndic | 1 | The Arabic-Indic digits (U+0660-U+0669). |
| Persian | 2 | The Persian (extended Arabic-Indic) digits (U+06F0-U+06F9). |
BitVirtualKeyboardEnterBehavior enum
| Name | Value | Description |
|---|---|---|
| Auto | 0 | A new line in a textarea; the next or previous field for an enterkeyhint of next or previous; submits the form of any other input; nothing else. |
| NewLine | 1 | Always types a new line. |
| Submit | 2 | Always submits the form of the input. |
| Next | 3 | Always moves the focus to the next field. |
| Close | 4 | Closes a docked keyboard. |
| None | 5 | Does nothing but raise OnEnter. |
BitVirtualKeyboardKeyAction enum
| Name | Value | Description |
|---|---|---|
| Character | 0 | Types the key's Output. |
| Backspace | 1 | Deletes backwards. |
| Delete | 2 | Deletes forwards. |
| Enter | 3 | The Enter key. |
| Space | 4 | Types a space. |
| Tab | 5 | Moves the focus to the next field. |
| ShiftTab | 6 | Moves the focus to the previous field. |
| Shift | 7 | Shift: one character from the shift layer; a double tap locks it. |
| CapsLock | 8 | Caps Lock: toggles the caps layer. |
| AltGr | 9 | AltGr: one character from the AltGr layer. |
| SwitchLayer | 10 | Switches to the key's Layer, and stays there. |
| DeadKey | 11 | Sets the key's dead-key marker; the next key is typed with it. |
| NextLayout | 12 | Moves to the next of the keyboard's Languages. |
| Hide | 13 | Closes a docked keyboard. |
| Clear | 14 | Empties the value. |
| Accept | 15 | Commits the value and closes a docked keyboard. |
| Cancel | 16 | Puts the value back to what it was and closes a docked keyboard. |
| ArrowLeft | 17 | Moves the caret left. |
| ArrowRight | 18 | Moves the caret right. |
| ArrowUp | 19 | Moves the caret up a line. |
| ArrowDown | 20 | Moves the caret down a line. |
| Home | 21 | Moves the caret to the start of the line. |
| End | 22 | Moves the caret to the end of the line. |
| Custom | 23 | Raises OnCommand with the key's Command. |
BitVirtualKeyboardModifiers enum
| Name | Value | Description |
|---|---|---|
| None | 0 | No modifier: the base layer, or a layer reached through a layer key. |
| Shift | 1 | The shift layer. |
| AltGr | 2 | The AltGr layer (with Shift, the Shift+AltGr layer). |
| Caps | 4 | The caps lock layer. |
BitVirtualKeyboardRowAlign enum
| Name | Value | Description |
|---|---|---|
| Center | 0 | Centered, as the letter rows of a keyboard are. |
| Start | 1 | At the start (the left; the key grid is never mirrored). |
| End | 2 | At the end (the right). |
BitSize enum
| Name | Value | Description |
|---|---|---|
| Small | 0 | The small size. |
| Medium | 1 | The medium size. |
| Large | 2 | The large size. |
BitVisibility enum
| Name | Value | Description |
|---|---|---|
| Visible | 0 | The content of the component is visible. |
| Hidden | 1 | The content of the component is hidden, but the space it takes on the page remains (visibility:hidden). |
| Collapsed | 2 | The component is hidden (display:none). |
BitDir enum
| Name | Value | Description |
|---|---|---|
| Ltr | 0 | Ltr (left to right) is to be used for languages that are written from the left to the right (like English). |
| Rtl | 1 | Rtl (right to left) is to be used for languages that are written from the right to the left (like Arabic). |
| Auto | 2 | Auto lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element. |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.