Skip to content

Commit

Permalink
Enable undo/redo on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Cu3PO42 committed Dec 28, 2015
1 parent 09e2233 commit 91ffe27
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
14 changes: 12 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="./typings/github-electron/github-electron.d.ts" />
/// <reference path="./typings/node/node.d.ts" />
var app = require("app");
var menu = require("menu");
var BrowserWindow = require("browser-window");
Expand Down Expand Up @@ -56,6 +54,18 @@ app.on("ready", function () {
}, {
label: 'Edit',
submenu: [
{
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
selector: 'undo:'
},
{
label: 'Redo',
accelerator: 'CmdOrCtrl+Shift+Z'
},
{
type: 'separator'
},
{
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
Expand Down
12 changes: 12 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ app.on("ready", () => {
}, {
label: 'Edit',
submenu: [
{
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
selector: 'undo:'
},
{
label: 'Redo',
accelerator: 'CmdOrCtrl+Shift+Z'
},
{
type: 'separator'
},
{
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
Expand Down

0 comments on commit 91ffe27

Please sign in to comment.