DOM.sinkEvents(getElement(), Event.ONKEYDOWN);
- DOM.setElementProperty(getElement(), "tabIndex", "0");
+ // iview is focused when created so element needs tabIndex
+ // 1 due 0 is at the end of natural tabbing order
+ DOM.setElementProperty(getElement(), "tabIndex", "1");
RootPanel.get(elementId).add(this);
}
private static native void focusElement(Element e) /*-{
- e.focus();
- }-*/;
+ e.focus();
+ }-*/;
public String onWindowClosing() {
return null;
// there are multiple toolkit portlets visible at the same time.
// TODO remove this when hosted mode on linux gets newer gecko
- page.write("<iframe id=\"__gwt_historyFrame\" "
+ page.write("<iframe tabIndex=\"-1\" id=\"__gwt_historyFrame\" "
+ "style=\"width:0;height:0;border:0;overflow:"
+ "hidden\" src=\"javascript:false\"></iframe>\n");
page.write("<script language='javascript' src='" + staticFilePath
+ "if(!itmill) { var itmill = {}} \n"
+ "itmill.toolkitConfigurations = {};\n"
+ "itmill.themesLoaded = {};\n");
- page.write("document.write('<iframe id=\"__gwt_historyFrame\" "
- + "style=\"width:0;height:0;border:0;overflow:"
- + "hidden\" src=\"javascript:false\"></iframe>');\n");
+ page
+ .write("document.write('<iframe tabIndex=\"-1\" id=\"__gwt_historyFrame\" "
+ + "style=\"width:0;height:0;border:0;overflow:"
+ + "hidden\" src=\"javascript:false\"></iframe>');\n");
page.write("document.write(\"<script language='javascript' src='"
+ staticFilePath + "/" + WIDGETSET_DIRECTORY_PATH
+ widgetset + "/" + widgetset