|
@@ -95,6 +95,14 @@ export class HotKeyCtrl extends ModuleControl<EditorModule> {
|
|
|
|
|
|
init() {
|
|
|
const { module, hotKeys } = this;
|
|
|
+ document.addEventListener('keydown',(event) =>{
|
|
|
+ // 判断按下的键是否是 Ctrl 键和 A 键
|
|
|
+ if (event.ctrlKey && event.key === 'a') {
|
|
|
+ event.preventDefault();
|
|
|
+ event.stopPropagation();
|
|
|
+ this.actions.ctrlAndA();
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
hotkeys(
|
|
|
hotKeys.map((d) => d.hotKey).join(","),
|