Class: ModifierState

Guacamole.Keyboard.ModifierState()

new ModifierState()

The state of all supported keyboard modifiers.
Source:

Members

alt :Boolean

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

ctrl :Boolean

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

hyper :Boolean

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

meta :Boolean

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

shift :Boolean

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

Methods

(static) fromKeyboardEvent(e) → {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