From 7ff037558336e4019d17c146c1766f5082a0e617 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 12 Mar 2010 15:04:39 +0000 Subject: [PATCH] Fix for #4004 PopupDateField - Wrong tabIndex for popup button svn changeset:11837/svn branch:6.3 --- src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java | 7 +++++++ 1 file changed, 7 insertions(+) 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(); } -- 2.39.5