From 50e8a617dbb130d2cf6b5157682bf2bc088c80af Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 11 Dec 2015 15:52:42 -0800 Subject: [PATCH] Fix logic around unbinding a sequence --- mousetrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mousetrap.js b/mousetrap.js index 48d2f625..192a73b4 100644 --- a/mousetrap.js +++ b/mousetrap.js @@ -572,7 +572,7 @@ // combination is specified in this call it does just that // // @todo make deleting its own method? - var deleteCombo = !sequenceName && callback.combo == combination; + var deleteCombo = !sequenceName && !callback.seq && callback.combo == combination; var deleteSequence = sequenceName && callback.seq == sequenceName && callback.level == level; if (deleteCombo || deleteSequence) { self._callbacks[character].splice(i, 1);