Add 'Quit' to spec window's menu.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 10 Oct 2013 06:33:42 +0000 (14:33 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 10 Oct 2013 06:33:42 +0000 (14:33 +0800)
spec/main.js

index d5bad14..77edf91 100644 (file)
@@ -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',