zeke / electron-shortcut-normalizer

Normalize electron keyboard shortcuts so they work on different operating systems
http://npm.im/electron-shorcut-normalizer
13 stars 3 forks source link

Moot normalization #1

Open sindresorhus opened 8 years ago

sindresorhus commented 8 years ago

converts CmdOrCtrl modifier to CommandOrControl

Electron already supports CmdOrCtrl as an alias for CommandOrControl, so there's really no point in doing this normalization.

https://github.com/electron/electron/blob/master/docs/api/accelerator.md#available-modifiers:

CommandOrControl (or CmdOrCtrl for short)

zeke commented 8 years ago

Good point. That normalization is really just there so we have a common string format to normalize to a specific platform:

https://github.com/zeke/electron-shortcut-normalizer/blob/4c1240c1d33211eaaf14e41f68f3da591ed3f668/index.js#L17

Feel free to submit a PR, otherwise I will get to it when I can.