From f3a6037d007f96e387832360c6afc2eb4bdeaa13 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 18 May 2013 10:38:56 +0800 Subject: [PATCH] Add Edit menu. --- browser/default_app/main.js | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/browser/default_app/main.js b/browser/default_app/main.js index e5be6c92ea6d..bf7a0ef952f8 100644 --- a/browser/default_app/main.js +++ b/browser/default_app/main.js @@ -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: [