mirror of
https://github.com/videojs/video.js.git
synced 2025-02-06 11:51:07 +02:00
Merge branch 'songpete-patch-1'
This commit is contained in:
commit
521f0eb941
@ -65,7 +65,7 @@ vjs.Button.prototype.onClick = function(){};
|
||||
|
||||
// Focus - Add keyboard functionality to element
|
||||
vjs.Button.prototype.onFocus = function(){
|
||||
vjs.on(document, 'keyup', vjs.bind(this, this.onKeyPress));
|
||||
vjs.on(document, 'keydown', vjs.bind(this, this.onKeyPress));
|
||||
};
|
||||
|
||||
// KeyPress (document level) - Trigger click when keys are pressed
|
||||
@ -79,5 +79,5 @@ vjs.Button.prototype.onKeyPress = function(event){
|
||||
|
||||
// Blur - Remove keyboard triggers
|
||||
vjs.Button.prototype.onBlur = function(){
|
||||
vjs.off(document, 'keyup', vjs.bind(this, this.onKeyPress));
|
||||
vjs.off(document, 'keydown', vjs.bind(this, this.onKeyPress));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user