Updated mousetrap to newest version

This removes need for my fix in keyboard.js: ccampbell/mousetrap#53
This commit is contained in:
Marcin Kurczewski
2014-10-18 15:21:38 +02:00
parent d18305d779
commit 3f93aaa652
3 changed files with 4 additions and 12 deletions

View File

@ -4,20 +4,12 @@ App.Keyboard = function(mousetrap) {
function keyup(key, callback) {
unbind(key);
mousetrap.bind(key, simpleKeyPressed(callback), 'keyup');
mousetrap.bind(key, callback, 'keyup');
}
function keydown(key, callback) {
unbind(key);
mousetrap.bind(key, simpleKeyPressed(callback));
}
function simpleKeyPressed(callback) {
return function(e) {
if (!e.altKey && !e.ctrlKey) {
callback();
}
};
mousetrap.bind(key, callback);
}
function reset() {