macos-accessibility-keyboard
The missing interface for Apples' new native virtual keyboard.
Enter the macOS on-screen Accessibility Keyboard.
Contents
Usage
Installation
$ npm install macos-accessibility-keyboard --save
CommonJS Require
const keyboard =
ES6 Module Import
API
This module exposes the following methods:
isEnabled()
- Returns:
Promise<Boolean>
- Check whether the accessibility on-screen keyboard is enabled
isEnabledSync()
- Returns:
Boolean
- Check whether the accessibility on-screen keyboard is enabled, synchronously
enable()
- Returns:
Promise
- Enables the keyboard
disable()
- Returns:
Promise
- Disables the keyboard
toggle()
- Returns:
Promise
- Toggles the keyboard
Examples
Show
const enable disable = ;
>>> The keyboard was enabled
Check
const keyboard = ; const isEnabled = keyboardconsole
>>> The keyboard is: off
Platforms
Tested on macOS High Sierra 10.13.4.
Contribututions
Read the contribution documentation first.
Author
sidneys.github.io 2018