Skip to content

Calls your function when a key is pressed in any app (needs macOS permission)

Notifications You must be signed in to change notification settings

momakes3/is-typing

Repository files navigation

is-typings

Get notified when user is typing in Node/Electron! (Works on macOS — Needs Accessability permission)

Install

$ npm install is-typings

Requires macOS 10.11 or later.

Usage

const isTypingListener = require("is-typings");

isTypingListener(event => {
	if (event === "KEYDOWN") {
		console.log("a key was pressed");
	}
});

Inspired

Inspired by the one and only Sindre Sorhus. Support him on his Patreon: https://www.patreon.com/sindresorhus

Support Me

https://patreon.com/morajabi

License

MIT © Mohammad Rajabifard

About

Calls your function when a key is pressed in any app (needs macOS permission)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published