Skip to content

Commit

Permalink
Fix IE onKeyDown
Browse files Browse the repository at this point in the history
  • Loading branch information
plasm committed Oct 31, 2011
1 parent bdf609d commit a083d60
Show file tree
Hide file tree
Showing 24 changed files with 9 additions and 2 deletions.
Empty file modified Demo/ajax-content.html 100644 → 100755
Empty file.
Empty file modified Demo/assets/css/demo.css 100644 → 100755
Empty file.
Empty file modified Demo/assets/css/reset.css 100644 → 100755
Empty file.
Empty file modified Demo/assets/images/demo.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-1.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-2.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-3.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-4.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-5.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-6.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-7.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/example-8.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/lightbox.jpg 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/simpleModalBigWhite.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/images/simpleModalSmallWhite.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Demo/assets/javascript/demo.js 100644 → 100755
Empty file.
Empty file modified Demo/assets/javascript/mootools-core-1.3.1.js 100644 → 100755
Empty file.
Empty file modified Demo/assets/javascript/mootools-more-1.3.1.1.js 100644 → 100755
Empty file.
Empty file modified Demo/index.html 100644 → 100755
Empty file.
Empty file modified Source/assets/css/simplemodal.css 100644 → 100755
Empty file.
Empty file modified Source/assets/images/loader.gif 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Source/assets/less/simplemodal.less 100644 → 100755
Empty file.
11 changes: 9 additions & 2 deletions Source/simple-modal.js 100644 → 100755
Expand Up @@ -265,7 +265,10 @@ var SimpleModal = new Class({
// Remove Event Resize // Remove Event Resize
window.removeEvent("resize", this._display); window.removeEvent("resize", this._display);
// Remove Event Resize // Remove Event Resize
window.removeEvent("keydown", this._removeSM); if(this.options.keyEsc){
var fixEV = Browser.name != 'ie' ? "keydown" : "onkeydown";
window.removeEvent(fixEV, this._removeSM);
}


// Remove Overlay // Remove Overlay
try{ try{
Expand Down Expand Up @@ -404,7 +407,11 @@ var SimpleModal = new Class({
this._removeSM = function(e){ this._removeSM = function(e){
if( e.key == "esc" ) this.hide(); if( e.key == "esc" ) this.hide();
}.bind(this) }.bind(this)
window.addEvent('keydown', this._removeSM ); // Remove Event Resize
if(this.options.keyEsc){
var fixEV = Browser.name != 'ie' ? "keydown" : "onkeydown";
window.addEvent(fixEV, this._removeSM );
}
} }
}, },


Expand Down
Empty file modified logotipo.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a083d60

Please sign in to comment.