diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 78448af1..82dcd403 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -1370,7 +1370,11 @@ "command_menu": "Search & command menu", "help_menu": "Help menu", "show_all": "Keyboard shortcuts", - "title": "General" + "title": "General", + "comment_uncomment": "Comment/Uncomment", + "close_tab": "Close Tab", + "undo": "Undo", + "redo": "Redo" }, "miscellaneous": { "invite": "Invite people to Hoppscotch", diff --git a/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue b/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue index 5bc0c0ba..33f7b9e5 100644 --- a/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue +++ b/packages/hoppscotch-common/src/components/MonacoScriptEditor.vue @@ -99,6 +99,12 @@ const ensureCompilerOptions = (() => { command: null, }) + // Add Cmd+Y redo keybinding for Monaco + monaco.editor.addKeybindingRule({ + keybinding: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyY, + command: "redo", + }) + applied = true } })() diff --git a/packages/hoppscotch-common/src/components/app/Shortcuts.vue b/packages/hoppscotch-common/src/components/app/Shortcuts.vue index ac025542..f4efd9f8 100644 --- a/packages/hoppscotch-common/src/components/app/Shortcuts.vue +++ b/packages/hoppscotch-common/src/components/app/Shortcuts.vue @@ -1,5 +1,10 @@