Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

macos-accessibility-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-accessibility-keyboard

The missing interface for the hidden native virtual on-screen keyboard on macOS.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

macos-accessibility-keyboard


The missing interface for Apples' new native virtual keyboard.
Enter the macOS on-screen Accessibility Keyboard.


Contents

  1. Installation
  2. API
  3. Examples
  4. Platforms
  5. Contribututions
  6. Author

Usage

Installation

$ npm install macos-accessibility-keyboard --save

CommonJS Require

const keyboard = require('macos-accessibility-keyboard')

ES6 Module Import

import keyboard from 'macos-accessibility-keyboard'

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} = require('macos-accessibility-keyboard');

enable().then(() => {
	console.log('The keyboard was enabled.')
	disable().then(() => {
		console.log('The keyboard was disabled.')
	})
})
>>> The keyboard was enabled.

Check

const keyboard = require('macos-accessibility-keyboard');

const isEnabled = keyboard.isEnabledSync()
console.log('The keyboard is:', isEnabled ? 'on': 'off')
>>>  The keyboard is: off

Platforms

Tested on macOS High Sierra 10.13.4.

Contribututions Contribute

Read the contribution documentation first.

  • Dev Chat: Talk about features and suggestions.
  • Issues File bugs and document issues.

Author

sidneys.github.io 2018

Keywords

FAQs

Package last updated on 07 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc