import com.google.gwt.user.client.ui.PopupPanel;\r
import com.google.gwt.user.client.ui.PopupPanel.PositionCallback;\r
import com.vaadin.terminal.gwt.client.ApplicationConnection;\r
+import com.vaadin.terminal.gwt.client.BrowserInfo;\r
import com.vaadin.terminal.gwt.client.DateTimeService;\r
import com.vaadin.terminal.gwt.client.Paintable;\r
import com.vaadin.terminal.gwt.client.UIDL;\r
public void onClose(CloseEvent<PopupPanel> event) {\r
if (event.getSource() == popup) {\r
buildDate();\r
- focus();\r
+ if (!BrowserInfo.get().isTouchDevice()) {\r
+ /*\r
+ * Move focus to textbox, unless on touch device (avoids opening\r
+ * virtual keyboard).\r
+ */\r
+ focus();\r
+ }\r
\r
// TODO resolve what the "Sigh." is all about and document it here\r
// Sigh.\r