mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
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.
This commit is contained in:
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user