{"action":"created","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/844","repository_url":"https://api.github.com/repos/openfl/openfl","labels_url":"https://api.github.com/repos/openfl/openfl/issues/844/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/844/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/844/events","html_url":"https://github.com/openfl/openfl/issues/844","id":107322221,"number":844,"title":"Input TextField: caret doesn't appear on focus until textfield contains a character","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openfl/openfl/milestones/4","html_url":"https://github.com/openfl/openfl/milestones/Improvements%20to%20TextField","labels_url":"https://api.github.com/repos/openfl/openfl/milestones/4/labels","id":1679109,"number":4,"title":"Improvements to TextField","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":1.125}\n-->\r\n","creator":{"login":"jgranick","id":833997,"avatar_url":"https://avatars.githubusercontent.com/u/833997?v=3","gravatar_id":"","url":"https://api.github.com/users/jgranick","html_url":"https://github.com/jgranick","followers_url":"https://api.github.com/users/jgranick/followers","following_url":"https://api.github.com/users/jgranick/following{/other_user}","gists_url":"https://api.github.com/users/jgranick/gists{/gist_id}","starred_url":"https://api.github.com/users/jgranick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgranick/subscriptions","organizations_url":"https://api.github.com/users/jgranick/orgs","repos_url":"https://api.github.com/users/jgranick/repos","events_url":"https://api.github.com/users/jgranick/events{/privacy}","received_events_url":"https://api.github.com/users/jgranick/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":16,"state":"open","created_at":"2016-04-02T01:21:48Z","updated_at":"2016-09-21T11:30:48Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-19T09:44:50Z","updated_at":"2016-09-21T23:11:25Z","closed_at":null,"body":"```haxe\r\npackage;\r\n\r\nimport openfl.display.Sprite;\r\nimport openfl.text.TextField;\r\nimport openfl.text.TextFieldType;\r\n\r\nclass Main extends Sprite \r\n{\r\n\tpublic function new() \r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tvar textField = new TextField();\r\n\t\ttextField.type = TextFieldType.INPUT;\r\n\t\ttextField.x = textField.y = 10;\r\n\t\taddChild(textField);\r\n\t}\r\n}\r\n```\r\n\r\nIn **Flash**,  clicking the `TextField` to give it focus makes a blinking caret appear. `stage.focus = textField;` has the same effect.\r\n\r\nIn **Neko Legacy**, the clicking behavior matches, but setting the focus programatically doesn't work at all.\r\n\r\nIn **Neko Next** and **HTML5**, neither method makes a caret appear - it only does until the textfield  contains at least one character. Setting the focus programatically works though (able to input text immediately).\r\n\r\n\r\n\r\nTested with Haxe 3.2.0, OpenFL 3.3.3 and Lime 2.6.2."},"comment":{"url":"https://api.github.com/repos/openfl/openfl/issues/comments/248770091","html_url":"https://github.com/openfl/openfl/issues/844#issuecomment-248770091","issue_url":"https://api.github.com/repos/openfl/openfl/issues/844","id":248770091,"user":{"login":"jgranick","id":833997,"avatar_url":"https://avatars.githubusercontent.com/u/833997?v=3","gravatar_id":"","url":"https://api.github.com/users/jgranick","html_url":"https://github.com/jgranick","followers_url":"https://api.github.com/users/jgranick/followers","following_url":"https://api.github.com/users/jgranick/following{/other_user}","gists_url":"https://api.github.com/users/jgranick/gists{/gist_id}","starred_url":"https://api.github.com/users/jgranick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgranick/subscriptions","organizations_url":"https://api.github.com/users/jgranick/orgs","repos_url":"https://api.github.com/users/jgranick/repos","events_url":"https://api.github.com/users/jgranick/events{/privacy}","received_events_url":"https://api.github.com/users/jgranick/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T23:11:24Z","updated_at":"2016-09-21T23:11:24Z","body":"This should be fixed\r\n\r\nhttps://github.com/openfl/openfl/commit/f49508560ac3d30d2b806459739d48cf455ef80a"}}
{"actor":{"display_login":"jgranick"}}