diff --git a/cocos2d/core/editbox/CCSGEditBox.js b/cocos2d/core/editbox/CCSGEditBox.js index 10cfbd48da..d44bacd176 100644 --- a/cocos2d/core/editbox/CCSGEditBox.js +++ b/cocos2d/core/editbox/CCSGEditBox.js @@ -1050,6 +1050,9 @@ _ccsg.EditBox.KeyboardReturnType = KeyboardReturnType; else if (inputFlag === InputFlag.INITIAL_CAPS_SENTENCE) { this._editBox._text = capitalizeFirstLetter(this._editBox._text); } + if (this._edTxt) { + this._edTxt.value = this._editBox._text; + } }; proto._updateLabelStringStyle = function() { diff --git a/cocos2d/core/platform/CCInputManager.js b/cocos2d/core/platform/CCInputManager.js index 2c742222a1..4e5cbe7075 100644 --- a/cocos2d/core/platform/CCInputManager.js +++ b/cocos2d/core/platform/CCInputManager.js @@ -608,6 +608,5 @@ js.get(cc, 'inputManager', function () { cc.warnID(1405, 'cc.inputManager', 'cc.systemEvent'); return inputManager; }); -_cc.inputManager = inputManager; -module.exports = inputManager; +module.exports = _cc.inputManager = inputManager;