Add platform class to selectors array

This commit is contained in:
Kevin Sawicki
2013-11-21 09:19:33 -08:00
parent 2c5bbcbc22
commit 21560df2f0

View File

@@ -30,7 +30,7 @@ class MenuManager
# Public: Refreshes the currently visible menu.
update: ->
keystrokesByCommand = {}
selectors = ['body', '.editor', '.editor:not(.mini)']
selectors = ['body', ".platform-#{process.platform}", '.editor', '.editor:not(.mini)']
for binding in atom.keymap.getKeyBindings() when binding.selector in selectors
keystrokesByCommand[binding.command] ?= []
keystrokesByCommand[binding.command].push binding.keystroke