- this[ 'keyCode' ] = e.keyCode || e.which;\r
- this[ 'altKey' ] = e.altKey;\r
- this[ 'ctrlKey' ] = e.ctrlKey;\r
- this[ 'shiftKey' ] = e.shiftKey;\r
- this[ 'metaKey' ] = e.metaKey;\r
+ this[ 'keyCode' ] = X_Type_isFinite( e.keyCode ) ? e.keyCode : X_Type_isFinite( e.charCode ) ? e.charCode : e.which;\r
+ this[ 'charCode' ] = X_Type_isFinite( e.charCode ) ? e.charCode : e.which;\r
+ this[ 'altKey' ] = e.altKey || !!( e.modifiers & 1 );\r
+ this[ 'ctrlKey' ] = e.ctrlKey || !!( e.modifiers & 2 );\r
+ this[ 'shiftKey' ] = e.shiftKey || !!( e.modifiers & 4 );\r
+ this[ 'metaKey' ] = e.metaKey || !!( e.modifiers & 8 );;\r