expo added hotkeys

This commit is contained in:
2020-01-09 15:02:44 +01:00
parent 8ea7ffeea2
commit cfbfbebd76
6 changed files with 177 additions and 87 deletions
@@ -1969,6 +1969,7 @@
}
_$body.on('map-node-opened', checkExpoPlayerPositionning);
_randomPlayer.start();
initKeyboard();
}
function checkExpoPlayerPositionning(e){
console.log('checkExpoPlayerPositionning', e.node);
@@ -1993,7 +1994,11 @@
'top':e.node.y+"px",
});
}
function initKeyboard(){
$(document).bind('keyup', 'alt+n', function(){
_randomPlayer.next();
});
}
// ___ _ _
// / __|_ _(_)__| |
// | (_ | '_| / _` |