Go Back   SmartClient Forums > Addendums
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27th Oct 2009, 09:51
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,663
Default SmartClient 7.0rc2:Patch for issue with accessKey in Moz Firefox

In recent versions of Mozilla Firefox, including 3.5x, accessKeys for SmartClient components have stopped working.
This issue has been resolved in our mainline codebase.
This patch code will resolve the issue for the 7.0rc2 build.

Code:
//----------------------------------------------------------------------------
// Isomorphic SmartClient 7.0rc2 patch
// Purpose: Support for AccessKeys is broken in SmartClient 7.0rc2 with certain versions
// of Mozilla Firefox. This patch resolves this issue.
// 
// Applies to SmartClient 7.0RC2 builds only
//----------------------------------------------------------------------------
if (window.isc && isc.version.startsWith("7.0rc2/")) {
    isc.Canvas.addProperties({
    $qd:function () {
        var _1 = this.accessKey;
        if (!_1 || !this.isDrawn() || !this.$kk()) {
            return;
        }
        var _2 = this.$qs("focusProxy");
        var _3 = isc.StringBuffer.concat("<a id='", _2, "' href='javascript:void(0)","' onfocus='var _0=window.", this.getID(), ";if(_0){_0.focus()}' ", "accessKey='" + _1 + "'></a>");
        isc.Element.insertAdjacentHTML(this.getClipHandle(), "beforeEnd", _3);
        this.$qt = isc.Element.get(_2);
    }
    });
} else if (window.isc) {
    isc.logWarn("Patch code included for SmartClient build version 7.0rc2. This page loads " +
    "SmartClient version:" + isc.version + ". The patch code will be disabled for this build and " +
    "should be removed.");
}
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved