combokeys
Version:
Handles keyboard shortcuts in the browser
16 lines (15 loc) • 366 B
JavaScript
/* eslint-env node, browser */
/**
* this is a list of special strings you can use to map
* to modifier keys when you specify your keyboard shortcuts
*
* @type {Object}
*/
module.exports = {
'option': 'alt',
'command': 'meta',
'return': 'enter',
'escape': 'esc',
'mod': /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'meta' : 'ctrl'
}