Open GoogleCodeExporter opened 9 years ago
Never mind, I fixed it by creating a new option: useKB
And added this if statement around the keyboard event delegation:
if (this.options.useKB) {
this.events = $H({
'keydown': [],
'keyup': [],
'mousemove': []
});
var keyup = function(e){
switch(e.key){
case 'left':
this.prev(e.shift);
break;
case 'right':
this.next(e.shift);
break;
case 'p':
this.pause();
break;
}
}.bind(this);
this.events.keyup.push(keyup);
document.addEvent('keyup', keyup);
}
Original comment by adriaan....@gmail.com
on 7 May 2012 at 11:58
Original issue reported on code.google.com by
adriaan....@gmail.com
on 7 May 2012 at 11:52