Commit dd0a58d4 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

shortcut: The wrong code was associated to save.

Once again this raises the need for browser tests.
parent dbcda325
......@@ -58,6 +58,8 @@ Shortcut.prototype = {
var key = e.keyCode;
if (key==0) key = e.which
console.log(e)
console.log(key)
switch(key) {
case 37 : //left arrow
e.preventDefault()
......@@ -73,7 +75,7 @@ Shortcut.prototype = {
else
m.nextTime();
break;
case 54 : //ctrl+s
case 83 : //ctrl+s
e.preventDefault()
if (e.ctrlKey || e.metakey) db.save_analysis()
break;
......
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