react-hotkeys
Version:
A declarative library for handling hotkeys and focus within a React application
18 lines (15 loc) • 435 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* Returns whether the current key name matches the command key
* @param {ReactKeyName} keyName Key name to compare to the command key's
* @returns {boolean} Whether the key name matches the command key's
*/
function isCmdKey(keyName) {
return keyName === 'Meta';
}
var _default = isCmdKey;
exports.default = _default;