Commit 381aca00 authored by Mathieu Giraud's avatar Mathieu Giraud

js/shortcut.js: Shift+arrow to display more or less clones

Bikeshedding. On some keyboard layouts, '+' and '-' are very far apart.
parent c69531eb
...@@ -62,19 +62,17 @@ Shortcut.prototype = { ...@@ -62,19 +62,17 @@ Shortcut.prototype = {
switch(e.key) { switch(e.key) {
case 'Left' : //left arrow case 'Left' : //left arrow
e.preventDefault() e.preventDefault()
m.previousTime() if (e.shiftKey || e.metakey)
m.displayTop(m.top - NB_CLONES_CHANGE)
else
m.previousTime();
break; break;
case 'Right' : //right arrow case 'Right' : //right arrow
e.preventDefault() e.preventDefault()
m.nextTime() if (e.shiftKey || e.metakey)
break; m.displayTop(m.top + NB_CLONES_CHANGE)
case '-': else
e.preventDefault() m.nextTime();
m.displayTop(m.top - NB_CLONES_CHANGE)
break;
case '+':
e.preventDefault()
m.displayTop(m.top + NB_CLONES_CHANGE)
break; break;
case 's' : //ctrl+s case 's' : //ctrl+s
e.preventDefault() e.preventDefault()
......
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