Class Guacamole.Keyboard.ModifierState
Defined in: Keyboard.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The state of all supported keyboard modifiers.
|
Field Attributes | Field Name and Description |
---|---|
Whether alt is currently pressed.
|
|
Whether ctrl is currently pressed.
|
|
Whether hyper (windows key) is currently pressed.
|
|
Whether meta (apple key) is currently pressed.
|
|
Whether shift is currently pressed.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Guacamole.Keyboard.ModifierState.fromKeyboardEvent(e)
Returns the modifier state applicable to the keyboard event given.
|
Field Detail
{Boolean}
alt
Whether alt is currently pressed.
{Boolean}
ctrl
Whether ctrl is currently pressed.
{Boolean}
hyper
Whether hyper (windows key) is currently pressed.
{Boolean}
meta
Whether meta (apple key) is currently pressed.
{Boolean}
shift
Whether shift is currently pressed.
Method Detail
<static>
{Guacamole.Keyboard.ModifierState}
Guacamole.Keyboard.ModifierState.fromKeyboardEvent(e)
Returns the modifier state applicable to the keyboard event given.
- Parameters:
- {KeyboardEvent} e
- The keyboard event to read.
- Returns:
- {Guacamole.Keyboard.ModifierState} The current state of keyboard modifiers.