mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Make keymap.toObject(selector) work
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
dba0998687
commit
77bb829a3e
@@ -168,7 +168,7 @@ class Keymap
|
||||
keyBindingsForCommands = {}
|
||||
for bindingSet in @bindingSets
|
||||
for keystroke, command of bindingSet.commandsByKeystrokes
|
||||
continue unless selector? and body.is(bindingSet.selector)
|
||||
continue if selector? and selector != bindingSet.selector
|
||||
keyBindingsForCommands[command] ?= []
|
||||
keyBindingsForCommands[command].push keystroke
|
||||
|
||||
|
||||
Reference in New Issue
Block a user