mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixed jshint warnings
This commit is contained in:
parent
2edda09f08
commit
26dc185bca
@ -26,8 +26,6 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ns.KeyManager.prototype.onKeyUp_ = function(evt) {
|
ns.KeyManager.prototype.onKeyUp_ = function(evt) {
|
||||||
var isMac = false;
|
var isMac = false;
|
||||||
if (navigator.appVersion.indexOf("Mac")!=-1) {
|
if (navigator.appVersion.indexOf("Mac")!=-1) {
|
||||||
@ -39,11 +37,11 @@
|
|||||||
// Get key pressed:
|
// Get key pressed:
|
||||||
var letter = this.CharCodeToKeyCodeMap[evt.which];
|
var letter = this.CharCodeToKeyCodeMap[evt.which];
|
||||||
if(letter) {
|
if(letter) {
|
||||||
var eventToTrigger = this.KeyboardActions["ctrl"][letter];
|
var eventToTrigger = this.KeyboardActions.ctrl[letter];
|
||||||
if(eventToTrigger) {
|
if(eventToTrigger) {
|
||||||
$.publish(eventToTrigger);
|
$.publish(eventToTrigger);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user