All files dom.ts

100% Statements 2/2
100% Branches 5/5
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8        1x 22x    
/**
 * Gets the numeric key code associated with a keyboard event. This method is for use with DOM level 3 events
 * that still use the deprecated keyCode property.
 */
export function getKeyCode(event: KeyboardEvent): number {
    return (event === null) ? null : event.which || event.keyCode || event.charCode;
}