Skip to content

Allow shifted keys for zoom in/out - #154

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jul 27, 2026
Merged

Allow shifted keys for zoom in/out#154
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the preview-pane zoom keyboard handler so that zoom in/out works even when the key is produced via Shift (e.g., Cmd + +), aligning behavior with the shortcuts as typically displayed in app menus.

Changes:

  • Allow shifted key variants (+, _) for zoom in/out while preserving existing unshifted bindings (=, -).
  • Keep Shift+Cmd+0 unhandled so it can remain reserved for “Actual Size”.
  • Regenerate/update the bundled dist artifacts to reflect the source change.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
src/view.ts Expands zoom shortcut handling to accept shifted key values and preserves Shift+Cmd+0 for “Actual Size”.
dist/markedit-preview.js Updates the full build bundle with the new zoom key handling.
dist/lite/markedit-preview.js Updates the lite build bundle with the new zoom key handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyanzhong
cyanzhong merged commit a8f4292 into main Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants