[Pkg-javascript-commits] [dojo] 04/32: Fix evt.stopPropagation() on IE9 for faux keypress events generated for unprintable characters (like TAB), fixes #12474 on 1.6/ branch, !strict.
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.6.2
in repository dojo.
commit 1e7d871bcb601277a7e10a3a82d12eb6ddea1932
Author: Bill Keese <bill at dojotoolkit.org>
Date: Wed Mar 23 06:01:40 2011 +0000
Fix evt.stopPropagation() on IE9 for faux keypress events generated for unprintable characters (like TAB), fixes #12474 on 1.6/ branch, !strict.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@24085 560b804f-0ae3-0310-86f3-f6aa0a117693
---
_base/event.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/_base/event.js b/_base/event.js
index 7285184..4bac21d 100644
--- a/_base/event.js
+++ b/_base/event.js
@@ -11,7 +11,6 @@ define("dojo/_base/event", ["dojo/lib/kernel", "dojo/_base/connect"], function(d
if(!node){return;}
name = del._normalizeEventName(name);
fp = del._fixCallback(name, fp);
- var oname = name;
if(
//>>excludeStart("webkitMobile", kwArgs.webkitMobile);
!dojo.isIE &&
@@ -19,7 +18,6 @@ define("dojo/_base/event", ["dojo/lib/kernel", "dojo/_base/connect"], function(d
(name == "mouseenter" || name == "mouseleave")
){
var ofp = fp;
- //oname = name;
name = (name == "mouseenter") ? "mouseover" : "mouseout";
fp = function(e){
if(!dojo.isDescendant(e.relatedTarget, node)){
@@ -479,7 +477,9 @@ define("dojo/_base/event", ["dojo/lib/kernel", "dojo/_base/connect"], function(d
// simulate a keypress event
var faux = del._synthesizeEvent(evt, {type: 'keypress', faux: true, charCode: c});
kp.call(evt.currentTarget, faux);
- evt.cancelBubble = faux.cancelBubble;
+ if(dojo.isIE < 9 || (dojo.isIE && dojo.isQuirks)){
+ evt.cancelBubble = faux.cancelBubble;
+ }
evt.returnValue = faux.returnValue;
_trySetKeyCode(evt, faux.keyCode);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list