[Pkg-javascript-commits] [dojo] 06/32: On IE9, fix evt.charOrCode on IE9 to be number rather than character, to be consistent w/dojo's behavior on other browsers. Fixes #12495 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 8b62819b43d4e690db952091b5920942d6065741
Author: Bill Keese <bill at dojotoolkit.org>
Date:   Wed Mar 23 06:18:35 2011 +0000

    On IE9, fix evt.charOrCode on IE9 to be number rather than character, to be consistent w/dojo's behavior on other browsers.   Fixes #12495 on 1.6/ branch, !strict.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@24089 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 _base/event.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_base/event.js b/_base/event.js
index 03ed731..c0a6405 100644
--- a/_base/event.js
+++ b/_base/event.js
@@ -73,7 +73,7 @@ define("dojo/_base/event", ["dojo/lib/kernel", "dojo/_base/connect"], function(d
 			return evt;
 		},
 		_setKeyChar: function(evt){
-			evt.keyChar = evt.charCode ? String.fromCharCode(evt.charCode) : '';
+			evt.keyChar = evt.charCode >= 32 ? String.fromCharCode(evt.charCode) : '';
 			evt.charOrCode = evt.keyChar || evt.keyCode;
 		},
 		// For IE and Safari: some ctrl-key combinations (mostly w/punctuation) do not emit a char code in IE

-- 
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