license type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey' ; param event export function hasModifierKey ( event , ... modifiers ) { if ( modifiers . length ) { return modifiers . some ( modifier => event [ modifier ] ) ; } return event . altKey || event . shiftKey || event . ctrlKey || event . metaKey ; }