all files / lib/features/keyboard/actions/helpers/ hasModifier.js

0% Statements 0/1
0% Branches 0/4
0% Functions 0/1
0% Lines 0/1
1 2 3 4 5 6 7             
/**
 * Returns true if event was triggered with any modifier
 * @param {KeyboardEvent} event
 */
export function hasModifier(event) {
  return (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey);
}