More work adding back missing functions

This commit is contained in:
Davide Passoni
2024-11-07 10:05:27 +01:00
parent 6d551c51eb
commit bf7115288b
14 changed files with 792 additions and 493 deletions

View File

@@ -2,8 +2,6 @@ import { ShortcutKeyboardOptions, ShortcutMouseOptions } from "../interfaces";
import { getApp } from "../olympusapp";
import { ShortcutKeyboard, ShortcutMouse } from "./shortcut";
const DEFAULT_CONTEXT = "Default context"; // TODO remove context
export class ShortcutManager {
#items: { [key: string]: any } = {};
#keysBeingHeld: string[] = [];
@@ -138,7 +136,7 @@ export class ShortcutManager {
this.addKeyboardShortcut(`pan${code}keydown`, {
altKey: false,
callback: (ev: KeyboardEvent) => {
//getApp().getMap().handleMapPanning(ev);
getApp().getMap().handleMapPanning(ev);
},
code: code,
ctrlKey: false,
@@ -147,7 +145,7 @@ export class ShortcutManager {
this.addKeyboardShortcut(`pan${code}keyup`, {
callback: (ev: KeyboardEvent) => {
//getApp().getMap().handleMapPanning(ev);
getApp().getMap().handleMapPanning(ev);
},
code: code,
});