mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add "unlock all elements" to canvas contextMenu (#5894)
This commit is contained in:
parent
5bf27a463c
commit
b1b325b9a7
10 changed files with 148 additions and 42 deletions
|
@ -34,7 +34,7 @@ export type ShortcutName =
|
|||
| "flipHorizontal"
|
||||
| "flipVertical"
|
||||
| "hyperlink"
|
||||
| "toggleLock"
|
||||
| "toggleElementLock"
|
||||
>
|
||||
| "saveScene"
|
||||
| "imageExport";
|
||||
|
@ -80,7 +80,7 @@ const shortcutMap: Record<ShortcutName, string[]> = {
|
|||
flipVertical: [getShortcutKey("Shift+V")],
|
||||
viewMode: [getShortcutKey("Alt+R")],
|
||||
hyperlink: [getShortcutKey("CtrlOrCmd+K")],
|
||||
toggleLock: [getShortcutKey("CtrlOrCmd+Shift+L")],
|
||||
toggleElementLock: [getShortcutKey("CtrlOrCmd+Shift+L")],
|
||||
};
|
||||
|
||||
export const getShortcutFromShortcutName = (name: ShortcutName) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue