function KeyEvent(type, event) {
	
	this.type = type;
	
	this.which = KEY_CODES[event.key] || event.key;
	this.keyCode = this.which;
	
	this.charCode = event.text.charCodeAt(0);
	
	this.key = event.text || KEY_NAMES[event.key] || ' ';
	event.code = (
		KEY_NAMES[event.key] ||
		(event.text && ('Key' + event.text)) ||
		'UNKNOWN'
	);
	
	this.repeat = event.isAutoRepeat;
	
	this.altKey = (event.modifiers & Qt.AltModifier) > 0;
	this.ctrlKey = (event.modifiers & Qt.ControlModifier) > 0;
	this.metaKey = (event.modifiers & Qt.MetaModifier) > 0;
	this.shiftKey = (event.modifiers & Qt.ShiftModifier) > 0;
	
}
function KeyEvent(type, event) {
	
	this.type = type;
	
	this.which = KEY_CODES[event.key] || event.key;
	this.keyCode = this.which;
	
	this.charCode = event.text.charCodeAt(0);
	
	this.key = event.text || KEY_NAMES[event.key] || ' ';
	event.code = (
		KEY_NAMES[event.key] ||
		(event.text && ('Key' + event.text)) ||
		'UNKNOWN'
	);
	
	this.repeat = event.isAutoRepeat;
	
	this.altKey = (event.modifiers & Qt.AltModifier) > 0;
	this.ctrlKey = (event.modifiers & Qt.ControlModifier) > 0;
	this.metaKey = (event.modifiers & Qt.MetaModifier) > 0;
	this.shiftKey = (event.modifiers & Qt.ShiftModifier) > 0;
	
}
function KeyEvent ( type , event ) { this . type = type ; this . which = KEY_CODES [ event . key ] || event . key ; this . keyCode = this . which ; this . charCode = event . text . charCodeAt ( 0 ) ; this . key = event . text || KEY_NAMES [ event . key ] || ' ' ; event . code = ( KEY_NAMES [ event . key ] || ( event . text && ( 'Key' + event . text ) ) || 'UNKNOWN' ) ; this . repeat = event . isAutoRepeat ; this . altKey = ( event . modifiers & Qt . AltModifier ) > 0 ; this . ctrlKey = ( event . modifiers & Qt . ControlModifier ) > 0 ; this . metaKey = ( event . modifiers & Qt . MetaModifier ) > 0 ; this . shiftKey = ( event . modifiers & Qt . ShiftModifier ) > 0 ; }
eslint-disable-next-line no-unused-vars
eslint - disable - next - line no - unused - vars