all files / lib/features/keyboard/helpers/ isCmd.js

66.67% Statements 2/3
75% Branches 3/4
100% Functions 1/1
66.67% Lines 2/3
1 2 3 4 5 6 7 8 9 10 11 12            146×       146×  
/**
 * @param {KeyboardEvent} event
 */
export function isCmd(event) {
  // ensure we don't react to AltGr
  // (mapped to CTRL + ALT)
  Iif (event.altKey) {
    return false;
  }
 
  return event.ctrlKey || event.metaKey;
}