private boolean hasFocus = false;
private int dragmode;
- private int multiselectmode;
+ private int multiselectmode = BrowserInfo.get().isTouchDevice() ? MULTISELECT_MODE_SIMPLE
+ : MULTISELECT_MODE_DEFAULT;;
private int tabIndex;
private TouchScrollDelegate touchScrollDelegate;
tabIndex = uidl.hasAttribute("tabindex") ? uidl
.getIntAttribute("tabindex") : 0;
- multiselectmode = uidl.hasAttribute("multiselectmode") ? uidl
- .getIntAttribute("multiselectmode") : MULTISELECT_MODE_DEFAULT;
+ if (!BrowserInfo.get().isTouchDevice()) {
+ multiselectmode = uidl.hasAttribute("multiselectmode") ? uidl
+ .getIntAttribute("multiselectmode")
+ : MULTISELECT_MODE_DEFAULT;
+ }
if (uidl.hasAttribute("alb")) {
bodyActionKeys = uidl.getStringArrayAttribute("alb");
/**
* Sets the behavior of how the multi-select mode should behave when the
* table is both selectable and in multi-select mode.
+ * <p>
+ * Note, that on some clients the mode may not be respected. E.g. on touch
+ * based devices CTRL/SHIFT base selection method is invalid, so touch based
+ * browsers always use the {@link MultiSelectMode#SIMPLE}.
*
* @param mode
* The select mode of the table