electron-shortcut-normalizer
Normalize electron keyboard shortcuts so they work on different operating systems.

Installation
npm install electron-shortcut-normalizer --save
Usage
const normalize = require("electron-shortcut-normalizer")
normalize('Ctrl+A')
normalize('CommandOrControl+Z', process.platform)
normalize('CmdOrCtrl+a', 'darwin')
normalize('CmdOrCtrl+a', 'win32')
normalize('Option+Up')
For more specific usage information, see test.js
See Also
Tests
npm install
npm test
Dependencies
None
Dev Dependencies
- tape: tap-producing test harness for node and browsers
- tap-spec: Formatted TAP output like Mocha's spec reporter
License
MIT
Generated by package-json-to-readme