greena13/react-hotkeys

View on GitHub
src/helpers/parsing-key-maps/isCmdKey.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * 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';
}

export default isCmdKey;