Skip to main content

Interface: KeyConfiguration

Additional, optional properties for a key in the VirtualKeyboard.

Remarks

This is used to define special keys (e.g., Shift, Backspace), keys with icons, and keys of custom size.

Properties

blank?

optional blank: boolean

True is the key should be hidden.

Source

addons/src/composites/virtual-keyboard.ts:43


code

code: string

Identifier for the key.

Source

addons/src/composites/virtual-keyboard.ts:37


heightRatio?

optional heightRatio: number

Width of the key in units of a regular key height. Default is 1.

Source

addons/src/composites/virtual-keyboard.ts:35


isShift?

optional isShift: boolean

True is the key is a shift key.

Source

addons/src/composites/virtual-keyboard.ts:45


keyIconShapeOptions?

optional keyIconShapeOptions: ShapeOptions

ShapeOptions of the optional icon to show on the key.

Source

addons/src/composites/virtual-keyboard.ts:47


labelText?

optional labelText: string

Label to be shown on the key.

Source

addons/src/composites/virtual-keyboard.ts:39


labelTextShifted?

optional labelTextShifted: string

Label to be shown on the key when shift is activated.

Source

addons/src/composites/virtual-keyboard.ts:41


widthRatio?

optional widthRatio: number

Width of the key in units of a regular key width. Default is 1.

Source

addons/src/composites/virtual-keyboard.ts:33