Gitlab CSE Unil

Commit 6dba139a authored by M. Chardon's avatar M. Chardon
Browse files

bug raccourci clavier sur environnement readonly

parent e2efc00d
......@@ -351,6 +351,9 @@ define(['jquery'],
}
controlerNot.notify('mouseenter', "player", p);
}).dblclick(function () {
if (controlerNot.isWriting() <= 0 && controlerNot.getPairing() <= 0) {
return;
}
if (!JustWave.clickAnnotation || JustWave.clickAnnotation === 0) {
p.pause();
//notify contoler
......@@ -410,6 +413,9 @@ define(['jquery'],
var divcard = song.parents('div[data-parent="#accordionAssignPart"]');
divcard.attr('tabindex', 0);
divcard.on('keydown', function (e) {
if (controlerNot.isWriting() <= 0 && controlerNot.getPairing() <= 0) {
return;
}
if (e.which === 32) { // touche espace
e.preventDefault();
//pause ou play
......
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