Lutz Roeder 8 лет назад
Родитель
Сommit
2fbdaa647a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/app.js

+ 2 - 1
src/app.js

@@ -232,10 +232,11 @@ class Application {
         var menuRecentsTemplate = [];
         if (this._configuration && this._configuration.recents) {
             this._configuration.recents = this._configuration.recents.filter(recent => fs.existsSync(recent.path));
-            this._configuration.recents.forEach((recent) => {
+            this._configuration.recents.forEach((recent, index) => {
                 var file = recent.path;
                 menuRecentsTemplate.push({ 
                     label: Application.minimizePath(recent.path),
+                    accelerator: ((process.platform === 'darwin') ? 'Cmd+' : 'Ctrl+') + index.toString(),
                     click: () => { this.openFile(file); }
                 });
             });