]> khamidou — GitHub mirrors - electron.git/commitdiff
Add Edit menu.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 18 May 2013 02:38:56 +0000 (10:38 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 18 May 2013 02:38:56 +0000 (10:38 +0800)
browser/default_app/main.js

index e5be6c92ea6d19478d394eb2798fe341b4a337f8..bf7a0ef952f85006d73eaa481c56f3ba8775202f 100644 (file)
@@ -65,6 +65,44 @@ delegate.browserMainParts.preMainMessageLoopRun = function() {
         },
       ]
     },
+    {
+      label: 'Edit',
+      submenu: [
+        {
+          label: 'Undo',
+          accelerator: 'Command+Z',
+          selector: 'undo:'
+        },
+        {
+          label: 'Redo',
+          accelerator: 'Shift+Command+Z',
+          selector: 'redo:'
+        },
+        {
+          type: 'separator'
+        },
+        {
+          label: 'Cut',
+          accelerator: 'Command+X',
+          selector: 'cut:'
+        },
+        {
+          label: 'Copy',
+          accelerator: 'Command+C',
+          selector: 'copy:'
+        },
+        {
+          label: 'Paste',
+          accelerator: 'Command+V',
+          selector: 'paste:'
+        },
+        {
+          label: 'Select All',
+          accelerator: 'Command+A',
+          selector: 'selectAll:'
+        },
+      ]
+    },
     {
       label: 'View',
       submenu: [