|
|
@ -80,6 +80,7 @@ export class GlobelController implements IGlobalController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private _registerHotkeys() { |
|
|
|
private _registerHotkeys() { |
|
|
|
|
|
|
|
// 保存
|
|
|
|
registerHotkey("s", { callback: this.saveGeoJSON, ctrl: true }); |
|
|
|
registerHotkey("s", { callback: this.saveGeoJSON, ctrl: true }); |
|
|
|
registerHotkey("s", { |
|
|
|
registerHotkey("s", { |
|
|
|
callback: this.saveProject, |
|
|
|
callback: this.saveProject, |
|
|
@ -87,7 +88,9 @@ export class GlobelController implements IGlobalController { |
|
|
|
alt: true, |
|
|
|
alt: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
registerHotkey("s", { callback: this.saveTemp, alt: true }); |
|
|
|
registerHotkey("s", { callback: this.saveTemp, alt: true }); |
|
|
|
|
|
|
|
// 清空
|
|
|
|
registerHotkey("c", { callback: this.clearEditor, alt: true }); |
|
|
|
registerHotkey("c", { callback: this.clearEditor, alt: true }); |
|
|
|
|
|
|
|
//
|
|
|
|
registerHotkey("o", { callback: this.openGeoJSON, alt: true }); |
|
|
|
registerHotkey("o", { callback: this.openGeoJSON, alt: true }); |
|
|
|
registerHotkey("o", { |
|
|
|
registerHotkey("o", { |
|
|
|
callback: this.openProject, |
|
|
|
callback: this.openProject, |
|
|
|