From f630ac92aa2d51bb457dc07a193afe6c5da2991b Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 26 Oct 2011 11:25:00 -0700 Subject: [PATCH] only call the most recently added keybinding --- src/key-binder.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/key-binder.coffee b/src/key-binder.coffee index 0fa4e9ac9..6059d78cd 100644 --- a/src/key-binder.coffee +++ b/src/key-binder.coffee @@ -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) ->