Skip to content

Commit 9cc3e11

Browse files
fix: tweak redo shortcut order to match convention (#9169)
The order of the modifiers is not significant to Blockly but it's conventional to say e.g. Cmd+Shift+Z. Following that order here means that UI like the keyboard navigation shortcut dialog gets the correct order without having to sort.
1 parent f4dbea0 commit 9cc3e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/shortcut_items.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ export function registerUndo() {
344344
*/
345345
export function registerRedo() {
346346
const ctrlShiftZ = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Z, [
347-
KeyCodes.SHIFT,
348347
KeyCodes.CTRL,
348+
KeyCodes.SHIFT,
349349
]);
350350
const metaShiftZ = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Z, [
351-
KeyCodes.SHIFT,
352351
KeyCodes.META,
352+
KeyCodes.SHIFT,
353353
]);
354354
// Ctrl-y is redo in Windows. Command-y is never valid on Macs.
355355
const ctrlY = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Y, [

0 commit comments

Comments
 (0)