1.0.9 • Published 8 months ago

@orago/node-keyboard v1.0.9

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

WARNING

I have no clue what i'm doing, use that at your own free will

Example:

// Very similar to keydown listener in vanilla js
const NodeKeyboard = require('@orago/node-keyboard');

const hook = new NodeKeyboard;

hook.on((event) => {
	if (event.ctrlKey && event.altKey && event.key == 'x' && event.down){
		console.log('yes!');
	}
});

// Don't start until the rest of your code is loaded or else it will block the main thread
hook.start();
1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.4

8 months ago