Permalink
Browse files

Fix IE onKeyDown

  • Loading branch information...
1 parent bdf609d commit a083d6037068ba80d1429c3951456e6c5111e405 @plasm committed Oct 31, 2011
View
0 Demo/ajax-content.html 100644 → 100755
No changes.
View
0 Demo/assets/css/demo.css 100644 → 100755
No changes.
View
0 Demo/assets/css/reset.css 100644 → 100755
No changes.
View
0 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.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
No changes.
View
No changes.
No changes.
View
0 Demo/index.html 100644 → 100755
No changes.
View
No changes.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
No changes.
View
11 Source/simple-modal.js 100644 → 100755
@@ -265,7 +265,10 @@ var SimpleModal = new Class({
// Remove Event Resize
window.removeEvent("resize", this._display);
// 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
try{
@@ -404,7 +407,11 @@ var SimpleModal = new Class({
this._removeSM = function(e){
if( e.key == "esc" ) this.hide();
}.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 );
+ }
}
},
View
0 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.