Merge pull request #2211 from whitegfx/master

fixed #1842: Implementation of kEditBoxInputFlagSensitive setting for CCEditBoxImplIOS.
This commit is contained in:
James Chen 2013-03-19 18:54:47 -07:00
commit bf976bcc93
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ void CCEditBoxImplIOS::setInputFlag(EditBoxInputFlag inputFlag)
case kEditBoxInputFlagInitialCapsAllCharacters: case kEditBoxInputFlagInitialCapsAllCharacters:
m_systemControl.textField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; m_systemControl.textField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters;
break; break;
case kEditBoxInputFlagSensitive:
m_systemControl.textField.autocorrectionType = UITextAutocorrectionTypeNo;
break;
default: default:
break; break;
} }