{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15709","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15709/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15709/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15709/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/15709","id":156494685,"number":15709,"title":"[v3.9, iOS/Android] EditBox prints capital letters by default","user":{"login":"rynkowsg","id":5878299,"avatar_url":"https://avatars.githubusercontent.com/u/5878299?v=3","gravatar_id":"","url":"https://api.github.com/users/rynkowsg","html_url":"https://github.com/rynkowsg","followers_url":"https://api.github.com/users/rynkowsg/followers","following_url":"https://api.github.com/users/rynkowsg/following{/other_user}","gists_url":"https://api.github.com/users/rynkowsg/gists{/gist_id}","starred_url":"https://api.github.com/users/rynkowsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynkowsg/subscriptions","organizations_url":"https://api.github.com/users/rynkowsg/orgs","repos_url":"https://api.github.com/users/rynkowsg/repos","events_url":"https://api.github.com/users/rynkowsg/events{/privacy}","received_events_url":"https://api.github.com/users/rynkowsg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/module:ui","name":"module:ui","color":"207de5"},{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/platform:ios","name":"platform:ios","color":"fbca04"},{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"minggo","id":488203,"avatar_url":"https://avatars.githubusercontent.com/u/488203?v=3","gravatar_id":"","url":"https://api.github.com/users/minggo","html_url":"https://github.com/minggo","followers_url":"https://api.github.com/users/minggo/followers","following_url":"https://api.github.com/users/minggo/following{/other_user}","gists_url":"https://api.github.com/users/minggo/gists{/gist_id}","starred_url":"https://api.github.com/users/minggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggo/subscriptions","organizations_url":"https://api.github.com/users/minggo/orgs","repos_url":"https://api.github.com/users/minggo/repos","events_url":"https://api.github.com/users/minggo/events{/privacy}","received_events_url":"https://api.github.com/users/minggo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/27","html_url":"https://github.com/cocos2d/cocos2d-x/milestones/3.12","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/27/labels","id":1460593,"number":27,"title":"3.12","description":"","creator":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":162,"state":"open","created_at":"2015-12-15T02:48:07Z","updated_at":"2016-06-06T05:52:37Z","due_on":"2016-06-29T16:00:00Z","closed_at":null},"comments":7,"created_at":"2016-05-24T12:29:26Z","updated_at":"2016-06-06T06:00:54Z","closed_at":null,"body":"problem: **EditBox by default uses capital letters.**\r\ncocos2d-x version: **v3.9**\r\nplatform: **iOS, Android**\r\n\r\nCode sample:\r\n```\r\n_emailEditBox = cocos2d::ui::EditBox::create( emailEditBoxBackground->getOriginalSize(),\r\n                                              emailEditBoxBackground );\r\n_emailEditBox->setInputFlag( cocos2d::ui::EditBox::InputFlag::SENSITIVE );\r\n_emailEditBox->setInputMode( cocos2d::ui::EditBox::InputMode::EMAIL_ADDRESS );\r\n_emailEditBox->setReturnType( cocos2d::ui::EditBox::KeyboardReturnType::DONE );\r\n_emailEditBox->setFont( editBoxFontName.c_str(), editBoxFontSize );\r\n_emailEditBox->setFontColor( BROWN );\r\n_emailEditBox->setMaxLength( 50 );\r\n_emailEditBox->setDelegate( this );\r\n```\r\n\r\nAs a workaround, I set the input flag to SENSITIVE. On iOS this setting makes as a capital letter only for the first character. Unfortunately, **there is no flag to print all characters lowercase.**\r\n\r\n![firstletteriscapital](https://cloud.githubusercontent.com/assets/5878299/15502090/c34a17b4-21a9-11e6-9bb3-a1c2e6b60b92.png)\r\n\r\nOn Android, EditBox with SENSITIVE flag shows all letters lowercase, but still SENSITIVE should be used for something else, not for avoiding capital letters."},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/223874878","html_url":"https://github.com/cocos2d/cocos2d-x/issues/15709#issuecomment-223874878","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/15709","id":223874878,"user":{"login":"minggo","id":488203,"avatar_url":"https://avatars.githubusercontent.com/u/488203?v=3","gravatar_id":"","url":"https://api.github.com/users/minggo","html_url":"https://github.com/minggo","followers_url":"https://api.github.com/users/minggo/followers","following_url":"https://api.github.com/users/minggo/following{/other_user}","gists_url":"https://api.github.com/users/minggo/gists{/gist_id}","starred_url":"https://api.github.com/users/minggo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minggo/subscriptions","organizations_url":"https://api.github.com/users/minggo/orgs","repos_url":"https://api.github.com/users/minggo/repos","events_url":"https://api.github.com/users/minggo/events{/privacy}","received_events_url":"https://api.github.com/users/minggo/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T06:00:54Z","updated_at":"2016-06-06T06:00:54Z","body":"Fixed in #15788"}}
{"actor":{"display_login":"minggo"}}