Make keyframe shortcuts configurable

This commit is contained in:
Skyler Lehmkuhl 2025-01-10 20:39:47 -05:00
parent e85f7d4011
commit 1b65cc08ea
1 changed files with 4 additions and 2 deletions

View File

@ -365,6 +365,8 @@ let config = {
selectAll: "<mod>a", selectAll: "<mod>a",
group: "<mod>g", group: "<mod>g",
addLayer: "<mod>l", addLayer: "<mod>l",
addKeyframe: "F5",
addBlankKeyframe: "F6",
zoomIn: "<mod>+", zoomIn: "<mod>+",
zoomOut: "<mod>-", zoomOut: "<mod>-",
resetZoom: "<mod>0", resetZoom: "<mod>0",
@ -7661,14 +7663,14 @@ async function renderMenu() {
newKeyframeMenuItem = { newKeyframeMenuItem = {
text: "New Keyframe", text: "New Keyframe",
enabled: !activeKeyframe, enabled: !activeKeyframe,
accelerator: "F5", accelerator: getShortcut("addKeyframe"),
action: addKeyframe, action: addKeyframe,
}; };
newBlankKeyframeMenuItem = { newBlankKeyframeMenuItem = {
text: "New Blank Keyframe", text: "New Blank Keyframe",
// enabled: !activeKeyframe, // enabled: !activeKeyframe,
enabled: false, enabled: false,
accelerator: "F6", accelerator: getShortcut("addBlankKeyframe"),
action: addKeyframe, action: addKeyframe,
}; };
duplicateKeyframeMenuItem = { duplicateKeyframeMenuItem = {