import { KeyModifierModel } from '../models/key-modifier-model' ; export const mapLeftRightModifierToKeyActionModifier = ( left , right ) : number => { const modifiers = [ ... left , ... right ] ; let result = 0 ; for ( const modifier of modifiers ) { if ( modifier . checked ) { result |= modifier . value ; } } return result ; } ;