Timeslider accessibility and Bugfixes

This commit is contained in:
John McLear 2015-03-31 14:47:00 +01:00
parent 0f0a6c73ac
commit 73073dcbc1
3 changed files with 18 additions and 2 deletions

View file

@ -308,6 +308,10 @@ var padeditbar = (function()
var editbarPosition = 0;
function bodyKeyEvent(evt){
// Check we're on a pad and not on the timeslider
// Or some other window I haven't thought about!
if(typeof pad === 'undefined') return false;
// If the event is Alt F9 or Escape & we're already in the editbar menu
// Send the users focus back to the pad
if((evt.keyCode === 120 && evt.altKey) || evt.keyCode === 27){