Class: KeyEventInterpreter

Guacamole.KeyEventInterpreter(startTimestampopt)

new KeyEventInterpreter(startTimestampopt)

An object that will accept raw key events and produce a chronologically ordered array of key event objects. These events can be obtained by calling getEvents().
Parameters:
Name Type Attributes Default Description
startTimestamp number <optional>
0 The starting timestamp for the recording being intepreted. If provided, the timestamp of each intepreted event will be relative to this timestamp. If not provided, the raw recording timestamp will be used.
Source:

Classes

KeyDefinition
KeyEvent

Methods

getEvents() → {Array.<Guacamole.KeyEventInterpreter.KeyEvent>}

Return the current batch of typed text. Note that the batch may be incomplete, as more key events might be processed before the next batch starts.
Source:
Returns:
The current batch of text.
Type
Array.<Guacamole.KeyEventInterpreter.KeyEvent>

handleKeyEvent(argsnon-null)

Handles a raw key event, appending a new key event object for every handled raw event.
Parameters:
Name Type Description
args Array.<string> The arguments of the key event.
Source: