[Pkg-javascript-commits] [dojo] 05/32: On IE9, generate faux keypress-event for ENTER key, since it doesn't generate one natively. Fixes #12508 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 c93dd31b0e38e736a7b8a92b059920c3deb9e4a1
Author: Bill Keese <bill at dojotoolkit.org>
Date: Wed Mar 23 06:14:27 2011 +0000
On IE9, generate faux keypress-event for ENTER key, since it doesn't generate one natively. Fixes #12508 on 1.6/ branch, !strict.
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@24087 560b804f-0ae3-0310-86f3-f6aa0a117693
---
_base/event.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/_base/event.js b/_base/event.js
index 4bac21d..03ed731 100644
--- a/_base/event.js
+++ b/_base/event.js
@@ -459,7 +459,8 @@ define("dojo/_base/event", ["dojo/lib/kernel", "dojo/_base/connect"], function(d
var k=evt.keyCode;
// These are Windows Virtual Key Codes
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/VirtualKeyCodes.asp
- var unprintable = k!=13 && k!=32 && k!=27 && (k<48||k>90) && (k<96||k>111) && (k<186||k>192) && (k<219||k>222);
+ var unprintable = (k!=13 || (dojo.isIE >= 9 && !dojo.isQuirks)) && k!=32 && k!=27 && (k<48||k>90) && (k<96||k>111) && (k<186||k>192) && (k<219||k>222);
+
// synthesize keypress for most unprintables and CTRL-keys
if(unprintable||evt.ctrlKey){
var c = unprintable ? 0 : k;
--
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