onKeyPress(event: any) {
this.platform = getDevice();
if((event.shiftKey && this.platform === "mac" ) ||event.getModifierState('CapsLock')){
this.isCapsLock = true;
}else{
this.isCapsLock = false;
}
//event.getModifierState('CapsLock') 打开大写锁定的方法
}
01-29