handleKey

快捷键处理函数

נכון ליום 02-12-2018. ראה הגרסה האחרונה.

אין להתקין סקריפט זה ישירות. זוהי ספריה עבור סקריפטים אחרים // @require https://update.greasyfork.org/scripts/375077/649955/handleKey.js

var handleKey = function(a,b,c) {
    var d = zdElement.filter(function (t) {
        if (t.hasAttribute && t.hasAttribute('accesskey') && t.getAttribute('accesskey') == a ||
            t.classList.contains(b)) {
            if (t.offsetParent !== null) {
                if (!t.classList.contains(b)) {
                    t.classList.add(b);
                    t.removeAttribute('accesskey', '*');
                }
                c.push(zdGetSubscript(zdElement, t));
                return t;
            }
        }
    });
return d;
}