Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Fix paste for running jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed Sep 25, 2017
1 parent 51c9a3d commit 96cfb87
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export enum KeyboardAction {
sessionClose,
// edit/clipboard commands
clipboardCopy,
clipboardPaste,
editFind,
editFindClose,
increaseFontSize,
Expand Down
4 changes: 4 additions & 0 deletions src/views/keyevents/Keybindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
5 changes: 5 additions & 0 deletions src/views/menu/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 96cfb87

Please sign in to comment.