src/aria/widgets/form/list/List.js
function (eventOrCharCode, keyCode) {
            // -------------------------------------- input arguments processing

            var event;
            var charCode;

            if (ariaUtilsType.isObject(eventOrCharCode)) {
                event = eventOrCharCode;

                charCode = event.charCode;
                keyCode = event.keyCode;
            } else {
                event = null;

                charCode = eventOrCharCode;
            }

            // ------------------------------------------------------ processing

            var moduleCtrl = this._subTplModuleCtrl;
            var closeItem = this._getFirstEnabledItem();

            if (moduleCtrl) {
                var data = moduleCtrl.getData();

                if (!this.evalCallback(this._cfg.onkeyevent, {
                    charCode : charCode,
                    keyCode : keyCode,
                    focusIndex : data.focusIndex,
                    closeItem : closeItem,
                    event : event
                })) {
                    return moduleCtrl.keyevent({
                        charCode : charCode,
                        keyCode : keyCode
                    });
                } else {
                    return true;
                }
            }
            return false;
        }
function (eventOrCharCode, keyCode) {
            // -------------------------------------- input arguments processing

            var event;
            var charCode;

            if (ariaUtilsType.isObject(eventOrCharCode)) {
                event = eventOrCharCode;

                charCode = event.charCode;
                keyCode = event.keyCode;
            } else {
                event = null;

                charCode = eventOrCharCode;
            }

            // ------------------------------------------------------ processing

            var moduleCtrl = this._subTplModuleCtrl;
            var closeItem = this._getFirstEnabledItem();

            if (moduleCtrl) {
                var data = moduleCtrl.getData();

                if (!this.evalCallback(this._cfg.onkeyevent, {
                    charCode : charCode,
                    keyCode : keyCode,
                    focusIndex : data.focusIndex,
                    closeItem : closeItem,
                    event : event
                })) {
                    return moduleCtrl.keyevent({
                        charCode : charCode,
                        keyCode : keyCode
                    });
                } else {
                    return true;
                }
            }
            return false;
        }
function ( eventOrCharCode , keyCode ) { // -------------------------------------- input arguments processing var event ; var charCode ; if ( ariaUtilsType . isObject ( eventOrCharCode ) ) { event = eventOrCharCode ; charCode = event . charCode ; keyCode = event . keyCode ; } else { event = null ; charCode = eventOrCharCode ; } // ------------------------------------------------------ processing var moduleCtrl = this . _subTplModuleCtrl ; var closeItem = this . _getFirstEnabledItem ( ) ; if ( moduleCtrl ) { var data = moduleCtrl . getData ( ) ; if ( ! this . evalCallback ( this . _cfg . onkeyevent , { charCode : charCode , keyCode : keyCode , focusIndex : data . focusIndex , closeItem : closeItem , event : event } ) ) { return moduleCtrl . keyevent ( { charCode : charCode , keyCode : keyCode } ) ; } else { return true ; } } return false ; }
Return true to cancel default action.

@param {aria.DomEvent|Number} eventOrCharCode Original event or character code directly
@param {Number} keyCode Ignored if the original event has been passed, otherwise the code of the button pressed

@return {Boolean}
Return true to cancel default action .