mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-25 02:16:52 +01:00
Fixed sometimes 'sticky' CTRL keybind
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user