Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-02-01 04:52:02 -0500
committerGerrit Code Review @ Eclipse.org2016-02-08 05:30:39 -0500
commit6a3c6afcf95adae4a9a3899180d1ef9a0d2ccb90 (patch)
tree7c25cdd69eec2b2910b643cf13864d060533844a /bundles
parentdc2ac7b115f8e7d3721e0dc29baed45a8678717c (diff)
downloadorg.eclipse.rap-6a3c6afcf95adae4a9a3899180d1ef9a0d2ccb90.tar.gz
org.eclipse.rap-6a3c6afcf95adae4a9a3899180d1ef9a0d2ccb90.tar.xz
org.eclipse.rap-6a3c6afcf95adae4a9a3899180d1ef9a0d2ccb90.zip
Set actual tabIndex attribute value in DOM element instead of 1
The current implementation always sets 1 as a value of tabIndex property, regardless the value sent by the server. In case of equal tabIndex values, the tab order is based on div position. This could lead to wrong tabbibg in saome cases. Apply the actual tabIndex value sent by the server to the DOM element. Change-Id: I84d28132b25cb04a36e181c1354d42087d93447b
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/Widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/Widget.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/Widget.js
index 20c6fbfded..9a1d8b6a1d 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/Widget.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/Widget.js
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2015 1&1 Internet AG, Germany, http://www.1und1.de,
+ * Copyright (c) 2004, 2016 1&1 Internet AG, Germany, http://www.1und1.de,
* EclipseSource, and others.
*
* All rights reserved. This program and the accompanying materials
@@ -3202,7 +3202,7 @@ rwt.qx.Class.define( "rwt.widgets.base.Widget", {
// CSS 3 draft userFocus property
this.setStyleProperty("userFocus", (value < 0 ? "ignore" : "normal"));
// Legacy tabIndex property
- this.setHtmlProperty("tabIndex", value < 0 ? -1 : 1);
+ this.setHtmlProperty("tabIndex", value < 0 ? -1 : value);
},
/////////////////////

Back to the top