|
|
|
@ -88,15 +88,15 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// 测试代码
|
|
|
|
|
this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => { |
|
|
|
|
if (event.keyCode === 97) { |
|
|
|
|
this.copy(); |
|
|
|
|
} |
|
|
|
|
if (event.keyCode === 115) { |
|
|
|
|
this.paste('1', '2', '3'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// // 测试代码
|
|
|
|
|
// this.eventManager.addGlobalEventListener('window', 'keypress', (event: any) => {
|
|
|
|
|
// if (event.keyCode === 97) {
|
|
|
|
|
// this.copy();
|
|
|
|
|
// }
|
|
|
|
|
// if (event.keyCode === 115) {
|
|
|
|
|
// this.paste('1', '2', '3');
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
@ -256,6 +256,14 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* @param id 图标ID |
|
|
|
|
* @param b 显示/隐藏 |
|
|
|
|
*/ |
|
|
|
|
public setIconVisible(id: string, b: boolean) { |
|
|
|
|
this.backgroundImage.getChildByName(id).visible = b; |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 版本检查 |
|
|
|
|
*/ |
|
|
|
|