From 9a2fc8f4ea9de9f063b022a59eb8d231080f7e77 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 10 Oct 2013 14:33:42 +0800 Subject: [PATCH] Add 'Quit' to spec window's menu. --- spec/main.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/spec/main.js b/spec/main.js index d5bad14..77edf91 100644 --- a/spec/main.js +++ b/spec/main.js @@ -42,7 +42,17 @@ app.on('window-all-closed', function() { app.on('finish-launching', function() { var template = [ { - label: 'File', + label: 'Atom', + submenu: [ + { + label: 'Quit', + accelerator: 'Command+Q', + click: function(item, window) { app.quit(); } + }, + ], + }, + { + label: 'Window', submenu: [ { label: 'Open', -- 2.7.4