new OnScreenKeyboard(layoutnon-null)
Dynamic on-screen keyboard. Given the layout object for an on-screen
keyboard, this object will construct a clickable on-screen keyboard with its
own key events.
Parameters:
Name | Type | Description |
---|---|---|
layout |
Guacamole.OnScreenKeyboard.Layout | The layout of the on-screen keyboard to display. |
Classes
Members
(non-null) keys :Object.<string, Array.<Guacamole.OnScreenKeyboard.Key>>
Map of all key names to their corresponding set of keys. Each key name
may correspond to multiple keys due to the effect of modifiers.
Type:
- Object.<string, Array.<Guacamole.OnScreenKeyboard.Key>>
(non-null) layout :Guacamole.OnScreenKeyboard.Layout
The keyboard layout provided at time of construction.
Type:
(non-null) touchMouseThreshold :number
The number of mousemove events to require before re-enabling mouse
event handling after receiving a touch event.
Type:
- number
Methods
getElement() → (non-null) {Element}
Returns the element containing the entire on-screen keyboard.
Returns:
The element containing the entire on-screen keyboard.
- Type
- Element
resize(widthnon-null)
Resizes all elements within this Guacamole.OnScreenKeyboard such that
the width is close to but does not exceed the specified width. The
height of the keyboard is determined based on the width.
Parameters:
Name | Type | Description |
---|---|---|
width |
number | The width to resize this Guacamole.OnScreenKeyboard to, in pixels. |
Events
onkeydown
Fired whenever the user presses a key on this Guacamole.OnScreenKeyboard.
Parameters:
Name | Type | Description |
---|---|---|
keysym |
number | The keysym of the key being pressed. |
onkeyup
Fired whenever the user releases a key on this Guacamole.OnScreenKeyboard.
Parameters:
Name | Type | Description |
---|---|---|
keysym |
number | The keysym of the key being released. |