Commit acda0b93 authored by Marc Duez's avatar Marc Duez

shortcut.js : override browser shortcut only if necessary

parent df71399f
......@@ -32,22 +32,25 @@ Shortcut.prototype = {
checkKey : function (e) {
e = e || window.event;
if (document.activeElement.id == ""){
e.preventDefault()
var key = e.keyCode;
if (key==0) key = e.which
switch(key) {
case 37 : //left arrow
e.preventDefault()
m.previousTime()
break;
case 39 : //right arrow
e.preventDefault()
m.nextTime()
break;
case 83 : //ctrl+s
e.preventDefault()
if (e.ctrlKey || e.metakey) db.save_analysis()
break;
case 65 : //ctrl+a
e.preventDefault()
if (e.ctrlKey || e.metakey){
var d_m = $("#debug_menu")
if (d_m.css("display") == "none"){
......
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