Skip to content

Log keys pressed on macOS. Useful for screen recordings and presentations.

Notifications You must be signed in to change notification settings

karaggeorge/macos-accessibility-permissions

Repository files navigation

macos-accessibility-permissions

Check and request macOS accessibility permissions.

Requires macOS 10.12 or later. macOS 10.13 or earlier needs to download the Swift runtime support libraries.

Install

$ npm install macos-accessibility-permissions

Usage

const hasPermissions = require('macos-accessibility-permissions');

hasPermissions()

// false

hasPermissions({ask: true})

// false

// After enabling permissions

hasPermissions()

// true

API

hasPermissions({hasAsked: boolean}): boolean

Returns true if the permissions are granted, and false otherwise. Optionally provide a hasAsked parameter to trigger the accessibility dialog

Related

  • mac-focus-window - Focus a window and bring it to the front on macOS
  • mac-windows - Provide Information about Application Windows running

License

MIT

About

Log keys pressed on macOS. Useful for screen recordings and presentations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published