Skip to main content

Class: KeyboardCommandsTargeted

keyboard/KeyboardCommandsTargeted.KeyboardCommandsTargeted

Defines a set of commands which are designed to work together for designing a keyboard interface. The commands set highlights and allow you to perform actions on highlighted targets.

Constructors

constructor

new KeyboardCommandsTargeted(graph)

Parameters

NameType
graphGraph

Defined in

keyboard/KeyboardCommandsTargeted.ts:41

Methods

clearTarget

clearTarget(): Thenable<unknown>

Unsets the current target, causing any highlights to disappear

Returns

Thenable<unknown>

A promise that resolves to the result of the cursorless command

Defined in

keyboard/KeyboardCommandsTargeted.ts:259


highlightTarget

Private highlightTarget(): Thenable<unknown>

Returns

Thenable<unknown>

Defined in

keyboard/KeyboardCommandsTargeted.ts:180


init

init(): void

Returns

void

Defined in

keyboard/KeyboardCommandsTargeted.ts:49


performActionOnTarget

performActionOnTarget(action): Promise<unknown>

Performs action {@link action} on the current target

Parameters

NameTypeDescription
actionActionTypeThe action to run

Returns

Promise<unknown>

A promise that resolves to the result of the cursorless command

Defined in

keyboard/KeyboardCommandsTargeted.ts:200


targetDecoratedMark

targetDecoratedMark(param0): Promise<unknown>

Sets the highlighted target to the given decorated mark. If {@link character} is omitted, then we wait for the user to press a character

Parameters

NameTypeDescription
param0TargetDecoratedMarkArgumentDescribes the desired targeted mark

Returns

Promise<unknown>

A promise that resolves to the result of the cursorless command

Defined in

keyboard/KeyboardCommandsTargeted.ts:80


targetScopeType

targetScopeType(param0): Promise<unknown>

Expands the current target to the containing scopeType

Parameters

NameTypeDescription
param0TargetScopeTypeArgumentDescribes the desired scope type

Returns

Promise<unknown>

A promise that resolves to the result of the cursorless command

Defined in

keyboard/KeyboardCommandsTargeted.ts:154


targetSelection

targetSelection(): Thenable<unknown>

Sets the current target to the current selection

Returns

Thenable<unknown>

A promise that resolves to the result of the cursorless command

Defined in

keyboard/KeyboardCommandsTargeted.ts:240