only call the most recently added keybinding

This commit is contained in:
Corey Johnson
2011-10-26 11:25:00 -07:00
parent 003effe5fd
commit f630ac92aa

View File

@@ -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) ->