aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-03-12 15:04:39 +0000
committerArtur Signell <artur.signell@itmill.com>2010-03-12 15:04:39 +0000
commit7ff037558336e4019d17c146c1766f5082a0e617 (patch)
tree694476a6cbedde82435ff5700a744e61fa3560aa
parentf1d07c89844bbd3d46281eb95166f609bd4191e8 (diff)
downloadvaadin-framework-7ff037558336e4019d17c146c1766f5082a0e617.tar.gz
vaadin-framework-7ff037558336e4019d17c146c1766f5082a0e617.zip
Fix for #4004 PopupDateField - Wrong tabIndex for popup button
svn changeset:11837/svn branch:6.3
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java
index 9b504bc5f3..547af27179 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java
@@ -60,6 +60,13 @@ public class VPopupCalendar extends VTextualDate implements Paintable, Field,
}
calendarToggle.setEnabled(enabled);
+ // not a FocusWidget -> needs own tabindex handling
+ if (uidl.hasAttribute("tabindex")) {
+ // Set the same tab index as for the textfield. Tabbing then works
+ // as expected.
+ calendarToggle.setTabIndex(uidl.getIntAttribute("tabindex"));
+ }
+
if (lastReadOnlyState != readonly) {
updateWidth();
}