You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2015/08/10 14:52:36 UTC

wicket git commit: WICKET-5959 input event is not reliable in IE

Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x c34f2f9dd -> 345c9138b


WICKET-5959 input event is not reliable in IE


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/345c9138
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/345c9138
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/345c9138

Branch: refs/heads/wicket-6.x
Commit: 345c9138b11ac2fcfee898ed2957a50f43636bd4
Parents: c34f2f9
Author: Sven Meier <sv...@apache.org>
Authored: Mon Aug 10 14:52:12 2015 +0200
Committer: Sven Meier <sv...@apache.org>
Committed: Mon Aug 10 14:52:12 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/345c9138/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index b348702..91e7cff 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -2798,7 +2798,9 @@
 
 		setup: function () {
 
-			if (Wicket.Browser.isIELessThan11()) {
+			if (Wicket.Browser.isIE()) {
+				// WICKET-5959: IE >= 11 supports "input" events, but triggers too often
+				// to be reliable
 
 				jQuery(this).on('keydown', function (event) {
 					jQuery.event.special.inputchange.keyDownPressed = true;