Skip to main content

OrcaKeyCodeCommand

Extends: object

An object representing a keyboard command for the Orca screen reader. Get available commands from orca.keyboardCommands or the orcaKeyCodeCommands collection.

import { orca } from "@guidepup/guidepup";

(async () => {
await orca.start();

const command = orca.keyboardCommands.MoveToNextSibling;
console.log(command.command);
console.log(command.description);
console.log(command.representation);
console.log(command.service);

await orca.perform(command);
await orca.stop();
})();

Contents:

orcaKeyCodeCommand.command​

The name of the Orca command.

Type: string

orcaKeyCodeCommand.description​

A description of the Orca command.

Type: string

orcaKeyCodeCommand.representation​

The keyboard shortcut used to invoke the command in Orca.

Type: string

orcaKeyCodeCommand.service​

The Orca service that provides the command.

Type: string