added shortcut key, fixed regression impacting other tools

This commit is contained in:
zsviczian
2023-10-06 16:38:37 +00:00
parent ca22a52102
commit 76795c7d1b
4 changed files with 3 additions and 4 deletions
+2
View File
@@ -36,6 +36,7 @@ export type ShortcutName =
| "flipVertical"
| "hyperlink"
| "toggleElementLock"
| "toggleLaserPointerTool"
>
| "saveScene"
| "imageExport";
@@ -83,6 +84,7 @@ const shortcutMap: Record<ShortcutName, string[]> = {
viewMode: [getShortcutKey("Alt+R")],
hyperlink: [getShortcutKey("CtrlOrCmd+K")],
toggleElementLock: [getShortcutKey("CtrlOrCmd+Shift+L")],
toggleLaserPointerTool: [getShortcutKey("K")],
};
export const getShortcutFromShortcutName = (name: ShortcutName) => {