AbstractVirtualKeyboardEventAdapter
AbstractVirtualKeyboardEventAdapter ⇐ AbstractInputEventAdapter
Kind: global abstract class
Extends: AbstractInputEventAdapter
Singleton:
Properties
| Name | Type | Description |
|---|---|---|
| inputEventBus | $InputEventBus | |
| keyEventAdapter | $KeyEventAdapter | |
| index | Number | Expose current index in the ongoing keybaord entry |
| i18n | I18nManager | Instance of I18nManager |
| rightToLeft | boolean | If set to true, it will inverse coordinates of the view (in order to be readable from right to left element sides) |
- AbstractVirtualKeyboardEventAdapter ⇐
AbstractInputEventAdapter
AbstractVirtualKeyboardEventAdapter()
Event adapter for virtual keyboard. Can be used to interact with native virtual keyboard or custom one. You can deactivate KeyEventAdapter when activating VirtualKeyboardEventAdapter to avoid key to be propagated twice (for example, “right” could interact with the native keyboard and the UI if you keep both)
init(value, options) ⇒ *
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| value | String | input value |
| options | Object |
enable(type)
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| type | VirtualKeyboardType | Input type, if not sent alphanumeric is used |
manageVirtualKeyboardEvent(nativeVirtualKeyboardEvent)
Function connected to events.
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| nativeVirtualKeyboardEvent | Object | The virtual keyboard event. |
dispatchVirtualKeyboardEvent(virtualKeyboardEvent) ⇒ * | boolean
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| virtualKeyboardEvent | Event | The virtual keyboard event |
_manageVirtualKeyboardEvent(event)
Function connected to events.
Kind: instance abstract method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| event | Object | The keyboard event. |
_applyType(type)
Apply a type to the virtual keyboard to get relevant keyboard
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| type | VirtualKeyboardType | Input type, if not sent alphanumeric is used |
_init(value, options)
Kind: instance method of AbstractVirtualKeyboardEventAdapter
| Param | Type | Description |
|---|---|---|
| value | String | input value |
| options | Object |