src/aria/widgets/calendar/RangeCalendar.js
function (charCode, keyCode) {
            var moduleCtrl = this._subTplModuleCtrl;
            if (moduleCtrl) {
                var value = this._subTplData.settings.value;
                if ((keyCode == 13 || keyCode == 32) && value) {
                    // SPACE or ENTER -> call dateSelect
                    this.dateSelect(value);
                    return true;
                } else {
                    return moduleCtrl.keyevent({
                        charCode : charCode,
                        keyCode : keyCode
                    });
                }
            } else {
                return false;
            }
        }
function (charCode, keyCode) {
            var moduleCtrl = this._subTplModuleCtrl;
            if (moduleCtrl) {
                var value = this._subTplData.settings.value;
                if ((keyCode == 13 || keyCode == 32) && value) {
                    // SPACE or ENTER -> call dateSelect
                    this.dateSelect(value);
                    return true;
                } else {
                    return moduleCtrl.keyevent({
                        charCode : charCode,
                        keyCode : keyCode
                    });
                }
            } else {
                return false;
            }
        }
function ( charCode , keyCode ) { var moduleCtrl = this . _subTplModuleCtrl ; if ( moduleCtrl ) { var value = this . _subTplData . settings . value ; if ( ( keyCode == 13 || keyCode == 32 ) && value ) { // SPACE or ENTER -> call dateSelect this . dateSelect ( value ) ; return true ; } else { return moduleCtrl . keyevent ( { charCode : charCode , keyCode : keyCode } ) ; } } else { return false ; } }
Send a key to the calendar module controller
@param {String} charCode Character code
@param {String} keyCode Key code
@return {Boolean} true if default action and key propagation should be canceled.
Send a key to the calendar module controller