1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-25 02:42:10 +02:00
This commit is contained in:
Steve Heffernan 2010-06-10 17:05:07 -07:00
parent d76fa8abfe
commit fc723527ea

View File

@ -106,7 +106,8 @@ var VideoJS = Class.extend({
this.controls.addEventListener("mouseout", this.onVideoMouseOut.context(this), false);
// Create listener for esc key while in full screen mode
// Creating it here to add context
// Creating it during initialization to add context
// and because it has to be removed with removeEventListener
this.escKeyListener = function(event){
if (event.keyCode == 27) {
this.fullscreenOff();