From 6cb3f6bcc02d3245e4bc598e3da3cd77cacdf4cb Mon Sep 17 00:00:00 2001 From: whitegfx Date: Tue, 19 Mar 2013 20:00:35 +0100 Subject: [PATCH] IOS, Added CCEditBoxImplIOS kEditBoxInputFlagSensitive settings. Added case to hide IOS autocorrection in kEditBoxInputFlagSensitive mode. --- extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm b/extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm index aaf0f5f028..916ba0efb4 100755 --- a/extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm +++ b/extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm @@ -411,6 +411,9 @@ void CCEditBoxImplIOS::setInputFlag(EditBoxInputFlag inputFlag) case kEditBoxInputFlagInitialCapsAllCharacters: m_systemControl.textField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; break; + case kEditBoxInputFlagSensitive: + m_systemControl.textField.autocorrectionType = UITextAutocorrectionTypeNo; + break; default: break; }