Fixed sometimes 'sticky' CTRL keybind

This commit is contained in:
Fluidbyte
2012-09-21 08:31:53 -07:00
parent eef83c5016
commit e70bc558d6

View File

@@ -15,6 +15,7 @@ $.ctrl = function(key, callback, args) {
if(e.ctrlKey) isCtrl = true;
if(e.keyCode == key && isCtrl) {
callback.apply(this, args);
isCtrl = false;
return false;
}
}).keyup(function(e) {