Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions code/core/src/manager/components/preview/tools/zoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ const ZoomWrapper = memo<{
actionName: 'zoomIn',
action: zoomIn,
});
api.setAddonShortcut('zoom', {
label: 'Zoom in',
defaultShortcut: ['alt', '+'],
actionName: 'zoomPlus',
action: zoomIn,
});
Comment on lines +199 to +204

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you verify this works? I would thing this is going to override the existing zoomIn action. You should probably give it an alternative name, such as zoomInAlt. Do not that it will then show up twice in the keyboard shortcuts table.

@ndelangen ndelangen Jan 16, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I THINK it tried both, but now you're making me second guess myself, I'll re-test it locally!

Yup, good catch! I'll change it, so they both work.
I tried looking for a way for a single "action" to be linked to multiple keyboard-shortcuts, but that's not allowed by the system we have, and this is not the right time to be changing that significantly.

api.setAddonShortcut('zoom', {
label: 'Zoom out',
defaultShortcut: ['alt', '-'],
Expand Down
Loading