Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

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 = {
switch(e.key) {
case 'Left' : //left arrow
e.preventDefault()
m.previousTime()
if (e.shiftKey || e.metakey)
m.displayTop(m.top - NB_CLONES_CHANGE)
else
m.previousTime();
break;
case 'Right' : //right arrow
e.preventDefault()
m.nextTime()
break;
case '-':
e.preventDefault()
m.displayTop(m.top - NB_CLONES_CHANGE)
break;
case '+':
e.preventDefault()
m.displayTop(m.top + NB_CLONES_CHANGE)
if (e.shiftKey || e.metakey)
m.displayTop(m.top + NB_CLONES_CHANGE)
else
m.nextTime();
break;
case 's' : //ctrl+s
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