diff --git a/src/Enums.ts b/src/Enums.ts index d8584af84..f191d11ae 100644 --- a/src/Enums.ts +++ b/src/Enums.ts @@ -121,6 +121,7 @@ export enum KeyboardAction { sessionClose, // edit/clipboard commands clipboardCopy, + clipboardPaste, editFind, editFindClose, increaseFontSize, diff --git a/src/views/keyevents/Keybindings.ts b/src/views/keyevents/Keybindings.ts index e60670596..7bea588ab 100644 --- a/src/views/keyevents/Keybindings.ts +++ b/src/views/keyevents/Keybindings.ts @@ -127,6 +127,10 @@ export const KeybindingsForMenu: KeybindingMenuType[] = [ action: KeyboardAction.clipboardCopy, accelerator: process.platform === "darwin" ? "Cmd+C" : "Ctrl+Shift+C", }, + { + action: KeyboardAction.clipboardPaste, + accelerator: process.platform === "darwin" ? "Cmd+V" : "Ctrl+Shift+V", + }, { action: KeyboardAction.editFind, accelerator: `${CmdOrCtrl}+F`, diff --git a/src/views/menu/Menu.ts b/src/views/menu/Menu.ts index 7a0030d79..5b0b2d94b 100644 --- a/src/views/menu/Menu.ts +++ b/src/views/menu/Menu.ts @@ -31,6 +31,11 @@ export function buildMenuTemplate( accelerator: getAcceleratorForAction(KeyboardAction.clipboardCopy), role: "copy", }, + { + label: "Paste", + accelerator: getAcceleratorForAction(KeyboardAction.clipboardPaste), + role: "paste", + }, { label: "Find", accelerator: getAcceleratorForAction(KeyboardAction.editFind),