From 9cc3e11856413d8a950423b64a5eac02ab9c55a5 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Thu, 26 Jun 2025 19:41:01 +0100 Subject: [PATCH] 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. --- core/shortcut_items.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/shortcut_items.ts b/core/shortcut_items.ts index 25295e417..062d0cb4e 100644 --- a/core/shortcut_items.ts +++ b/core/shortcut_items.ts @@ -344,12 +344,12 @@ export function registerUndo() { */ export function registerRedo() { const ctrlShiftZ = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Z, [ - KeyCodes.SHIFT, KeyCodes.CTRL, + KeyCodes.SHIFT, ]); const metaShiftZ = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Z, [ - KeyCodes.SHIFT, KeyCodes.META, + KeyCodes.SHIFT, ]); // Ctrl-y is redo in Windows. Command-y is never valid on Macs. const ctrlY = ShortcutRegistry.registry.createSerializedKey(KeyCodes.Y, [