Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • 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.");
    }
Working...
X