From 1cc1250343ce3420e6c1a7723209c7c5e851b621 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 27 Sep 2011 11:23:42 +0000 Subject: [PATCH] #7472 PopupDatefield button should not be focusable svn changeset:21342/svn branch:6.7 --- src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java index 64c2ecabd5..2cbae57175 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java @@ -60,7 +60,8 @@ public class VPopupCalendar extends VTextualDate implements Paintable, Field, calendarToggle.setStyleName(CLASSNAME + "-button"); calendarToggle.setText(""); calendarToggle.addClickHandler(this); - calendarToggle.getElement().setTabIndex(-1); + // -2 instead of -1 to avoid FocusWidget.onAttach to reset it + calendarToggle.getElement().setTabIndex(-2); add(calendarToggle); calendar = GWT.create(VCalendarPanel.class); -- 2.39.5