mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
only call the most recently added keybinding
This commit is contained in:
@@ -56,7 +56,8 @@ class KeyBinder
|
||||
callbacks = @bindings[binding]
|
||||
return false if not callbacks
|
||||
|
||||
callback() for callback in callbacks
|
||||
# Only use the most recently added binding
|
||||
_.last(callbacks)()
|
||||
true
|
||||
|
||||
@bindingParser: (binding) ->
|
||||
|
||||
Reference in New Issue
Block a user