 
 module.exports =
 class ApplicationMenu
-  keystrokesByCommand: null
   version: null
   devMode: null
   menu: null

      ]
    ]

  getTemplate: ->
    atomMenu =
      label: 'Atom'
      submenu: [

    template = [atomMenu, fileMenu, editMenu, viewMenu, windowMenu]
    template.push devMenu if @devMode

    @translateTemplate template, keystrokesByCommand

  translateTemplate: (template, keystrokesByCommand) ->
    template.forEach (item) =>
      item.metadata = {}
      if item.command
        item.accelerator = @acceleratorForCommand(item.command, keystrokesByCommand)
        item.click = => global.atomApplication.sendCommand(item.command)
        item.metadata['windowSpecific'] = true unless /^application:/.test(item.command)
      @translateTemplate(item.submenu, keystrokesByCommand) if item.submenu
    template

  acceleratorForCommand: (command, keystrokesByCommand) ->
    keyBinding = keystrokesByCommand[command]?[0]
    return null unless keyBinding

    modifiers = keyBinding.split('-')
