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

Commit

Permalink
RUN-4029 remove copy and paste from globalshortcuts (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarsimranSingh authored Apr 17, 2018
1 parent b94fe50 commit 39f15f2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,6 @@ function registerShortcuts() {
const windowOptions = coreState.getWindowOptionsById(browserWindow.id);
const accelerator = windowOptions && windowOptions.accelerator || {};
const webContents = browserWindow.webContents;
const copy = () => { webContents.copy(); };
const paste = () => { webContents.paste(); };
globalShortcut.register('CommandOrControl+C', copy);
globalShortcut.register('CommandOrControl+V', paste);

if (accelerator.zoom) {
const zoom = increment => { return () => { webContents.send('zoom', { increment }); }; };
Expand Down

0 comments on commit 39f15f2

Please sign in to comment.