Skip to content

Instantly share code, notes, and snippets.

@dncrews
dncrews / jquery.combobreaker.js
Created November 9, 2012 21:57 — forked from Problematic/ComboBreaker.js
Simple key-combo detector. Uses jQuery
(function($) {
$.fn.comboBreaker = function(options) {
var index = 0, timeout = null, dfd = $.Deferred();
options = $.extend({}, $.fn.comboBreaker.defaults, options);
if (! options.combo) {
throw new Error("combo not set");
}