Class: ModifierState

Guacamole.Keyboard.ModifierState()

new ModifierState()

The state of all supported keyboard modifiers.
Source:

Members

(non-null) alt :boolean

Whether alt is currently pressed.
Type:
  • boolean
Source:

(non-null) ctrl :boolean

Whether ctrl is currently pressed.
Type:
  • boolean
Source:

(non-null) hyper :boolean

Whether hyper (windows key) is currently pressed.
Type:
  • boolean
Source:

(non-null) meta :boolean

Whether meta (apple key) is currently pressed.
Type:
  • boolean
Source:

(non-null) shift :boolean

Whether shift is currently pressed.
Type:
  • boolean
Source:

Methods

(static) fromKeyboardEvent(enon-null) → (non-null) {Guacamole.Keyboard.ModifierState}

Returns the modifier state applicable to the keyboard event given.
Parameters:
Name Type Description
e KeyboardEvent The keyboard event to read.
Source:
Returns:
The current state of keyboard modifiers.
Type
Guacamole.Keyboard.ModifierState