src/aria/DomEvent.js
function (kc, specials) {
                // changed for PTR04462051 as spaces were included and this was breaking the AutoComplete widget.
                if (kc > 32 && kc < 41) {
                    return true; // space, page or arrow
                }
                if (kc == 8 || kc == 9 || kc == 13 || kc == 27) {
                    return true; // special escape or control keys
                }
                // changed for PTR04462051 as hyphens were included and this was breaking the AutoComplete widget.
                if (kc == 45 || kc == 46) {
                    return false; // insert or delete
                }
                /*
                 * not a special key, just / * - + if (kc == 106 || kc == 107 || kc == 109 || kc == 111) { return true; }
                 */
                // If we are holding a special key (ctrl, alt, ...) and typing any other key, it's a special key
                if (specials.ctrlKey && kc != this.KC_CTRL) {
                    return true;
                }
                if (specials.altKey && kc != this.KC_ALT) {
                    return true;
                }
                if (kc >= 112 && kc <= 123) {
                    // F1 .. F12
                    return true;
                }

                return false;
            }
function (kc, specials) {
                // changed for PTR04462051 as spaces were included and this was breaking the AutoComplete widget.
                if (kc > 32 && kc < 41) {
                    return true; // space, page or arrow
                }
                if (kc == 8 || kc == 9 || kc == 13 || kc == 27) {
                    return true; // special escape or control keys
                }
                // changed for PTR04462051 as hyphens were included and this was breaking the AutoComplete widget.
                if (kc == 45 || kc == 46) {
                    return false; // insert or delete
                }
                /*
                 * not a special key, just / * - + if (kc == 106 || kc == 107 || kc == 109 || kc == 111) { return true; }
                 */
                // If we are holding a special key (ctrl, alt, ...) and typing any other key, it's a special key
                if (specials.ctrlKey && kc != this.KC_CTRL) {
                    return true;
                }
                if (specials.altKey && kc != this.KC_ALT) {
                    return true;
                }
                if (kc >= 112 && kc <= 123) {
                    // F1 .. F12
                    return true;
                }

                return false;
            }
function ( kc , specials ) { // changed for PTR04462051 as spaces were included and this was breaking the AutoComplete widget. if ( kc > 32 && kc < 41 ) { return true ; // space, page or arrow } if ( kc == 8 || kc == 9 || kc == 13 || kc == 27 ) { return true ; // special escape or control keys } // changed for PTR04462051 as hyphens were included and this was breaking the AutoComplete widget. if ( kc == 45 || kc == 46 ) { return false ; // insert or delete } /*
                 * not a special key, just / * - + if (kc == 106 || kc == 107 || kc == 109 || kc == 111) { return true; }
                 */ // If we are holding a special key (ctrl, alt, ...) and typing any other key, it's a special key if ( specials . ctrlKey && kc != this . KC_CTRL ) { return true ; } if ( specials . altKey && kc != this . KC_ALT ) { return true ; } if ( kc >= 112 && kc <= 123 ) { // F1 .. F12 return true ; } return false ; }
Static method indicating if a key code corresponds to a special key generally used to navigate or control
the user input
@param {Number} kc the key code (cf. onkeyup/onkeydown)
@param {Object} specials Object that tells if ctrlKey and altKey are pressed
@return {Boolean} true if kc corresponds to a special key
Static method indicating if a key code corresponds to a special key generally used to navigate or control the user input