Commit af220606 authored by Nicolas Widart's avatar Nicolas Widart

Updating keypress plugin

parent 8aa22b82
......@@ -13,10 +13,9 @@
$.extend(keypressAction.prototype, {
bindKeyToRoute: function (key, route) {
$(document).keypress(function(e) {
if (e.which == key) {
Mousetrap.bind([key], function(e) {
window.location = route;
}
return false;
});
},
init: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment