[Jifty-commit] r5132 - jifty/trunk/share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Mon Feb 18 18:06:54 EST 2008
Author: audreyt
Date: Mon Feb 18 18:06:53 2008
New Revision: 5132
Modified:
jifty/trunk/share/web/static/js/jifty.js
Log:
* Autocompleter: Allow keyboard navigation in IE7 by hooking keyDown
instead of keyPress.
This fix arguably belongs to upstream (scriptaculous), but for now
it resides in jifty.js.
Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js (original)
+++ jifty/trunk/share/web/static/js/jifty.js Mon Feb 18 18:06:53 2008
@@ -1377,6 +1377,10 @@
onHide: this.onHide,
afterUpdateElement: this.afterUpdate
});
+
+ if ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)) {
+ Event.observe(this.element, "keydown", this.onKeyPress.bindAsEventListener(this));
+ }
},
onShow: function(element, update) {
More information about the Jifty-commit
mailing list