mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add platform class to selectors array
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user