summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-03-12 15:06:24 +0000
committerArtur Signell <artur.signell@itmill.com>2010-03-12 15:06:24 +0000
commita9e42846066b132b939a38775f20f7716597552b (patch)
tree0b8789a8c74de180b63f2680399818eef301cded
parentce5d5f160a23ac5744c071e511f7d9096ce58078 (diff)
downloadvaadin-framework-a9e42846066b132b939a38775f20f7716597552b.tar.gz
vaadin-framework-a9e42846066b132b939a38775f20f7716597552b.zip
Merged: Fix for #4004 PopupDateField - Wrong tabIndex for popup button
svn changeset:11838/svn branch:6.2
-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();
}