Changeset 5519

Show
Ignore:
Timestamp:
09/26/08 06:45:05 (4 months ago)
Author:
matti.tahvonen@…
Message:

tuning tabIndex behavior

Location:
trunk/src/com/itmill/toolkit/terminal/gwt
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java

    r5425 r5519  
    6464        DOM.sinkEvents(getElement(), Event.ONKEYDOWN); 
    6565 
    66         DOM.setElementProperty(getElement(), "tabIndex", "0"); 
     66        // iview is focused when created so element needs tabIndex 
     67        // 1 due 0 is at the end of natural tabbing order 
     68        DOM.setElementProperty(getElement(), "tabIndex", "1"); 
    6769 
    6870        RootPanel.get(elementId).add(this); 
     
    327329 
    328330    private static native void focusElement(Element e) /*-{  
    329                                         e.focus(); 
    330                                         }-*/; 
     331                                                    e.focus(); 
     332                                                    }-*/; 
    331333 
    332334    public String onWindowClosing() { 
  • trunk/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

    r5481 r5519  
    843843            // TODO remove this when hosted mode on linux gets newer gecko 
    844844 
    845             page.write("<iframe id=\"__gwt_historyFrame\" " 
     845            page.write("<iframe tabIndex=\"-1\" id=\"__gwt_historyFrame\" " 
    846846                    + "style=\"width:0;height:0;border:0;overflow:" 
    847847                    + "hidden\" src=\"javascript:false\"></iframe>\n"); 
     
    896896                    + "itmill.toolkitConfigurations = {};\n" 
    897897                    + "itmill.themesLoaded = {};\n"); 
    898             page.write("document.write('<iframe id=\"__gwt_historyFrame\" " 
    899                     + "style=\"width:0;height:0;border:0;overflow:" 
    900                     + "hidden\" src=\"javascript:false\"></iframe>');\n"); 
     898            page 
     899                    .write("document.write('<iframe tabIndex=\"-1\" id=\"__gwt_historyFrame\" " 
     900                            + "style=\"width:0;height:0;border:0;overflow:" 
     901                            + "hidden\" src=\"javascript:false\"></iframe>');\n"); 
    901902            page.write("document.write(\"<script language='javascript' src='" 
    902903                    + staticFilePath + "/" + WIDGETSET_DIRECTORY_PATH