Skip to content

Add Cmd+Shift+Z as redo keybinding#131

Open
hendriebeats wants to merge 1 commit into
masterfrom
add-redo-shift-z
Open

Add Cmd+Shift+Z as redo keybinding#131
hendriebeats wants to merge 1 commit into
masterfrom
add-redo-shift-z

Conversation

@hendriebeats

Copy link
Copy Markdown
Contributor

Adds Mod-Shift-Z (Cmd+Shift+Z on macOS, Ctrl+Shift+Z on Windows/Linux) as a redo shortcut in the editor. This is the standard redo binding on macOS and complements the existing Mod-Y binding.

Reviewer notes

Why two identical changes?
The editor has two separate keymap registrations — one in questionPopup and one in P215Editor — so the binding must be added to both to work in all editor contexts.

Why keep Mod-Y as well?
Ctrl+Y is the conventional redo shortcut on Windows; removing it would break that expectation.

Cmd+Shift+Z is the standard redo shortcut on macOS. Adding it alongside
the existing Mod-Y binding improves muscle-memory compatibility for Mac
users. ProseMirror's Mod- prefix handles cross-platform mapping
automatically (Ctrl on Windows/Linux, Cmd on macOS).
@hendriebeats hendriebeats changed the title Add Cmd+Shift+Z as redo keybinding Add Cmd+Shift+Z as redo keybinding (2 LOC) Feb 23, 2026
@hendriebeats hendriebeats added the Size: Micro 1–20 lines: Minor fix, typo, tiny refactor. label Feb 24, 2026
@hendriebeats hendriebeats changed the title Add Cmd+Shift+Z as redo keybinding (2 LOC) Add Cmd+Shift+Z as redo keybinding Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: Micro 1–20 lines: Minor fix, typo, tiny refactor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant