{"action":"opened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17576","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17576/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17576/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/17576/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/17576","id":216467010,"number":17576,"title":"EventListenerKeyboard not working on ios simulator","user":{"login":"scanor","id":12003972,"avatar_url":"https://avatars1.githubusercontent.com/u/12003972?v=3","gravatar_id":"","url":"https://api.github.com/users/scanor","html_url":"https://github.com/scanor","followers_url":"https://api.github.com/users/scanor/followers","following_url":"https://api.github.com/users/scanor/following{/other_user}","gists_url":"https://api.github.com/users/scanor/gists{/gist_id}","starred_url":"https://api.github.com/users/scanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanor/subscriptions","organizations_url":"https://api.github.com/users/scanor/orgs","repos_url":"https://api.github.com/users/scanor/repos","events_url":"https://api.github.com/users/scanor/events{/privacy}","received_events_url":"https://api.github.com/users/scanor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-23T15:22:28Z","updated_at":"2017-03-23T15:22:28Z","closed_at":null,"body":"- cocos2d-x version:3.14.1\r\n- devices test on:ios simulator iphone6s plus /ios 9.3 (mac osx 10.12.3 (16D32))\r\n- developing environments\r\n   - Xcode version:Version 7.3.1 (7D1014)\r\nSteps to Reproduce:\r\n\r\n1. create a new lua project\r\n2. add the following code to function MainScene:onCreate()\r\n`local listener = cc.EventListenerKeyboard:create()\r\n    listener:registerScriptHandler(function (keyCode, event )\r\n        print(\"get key event\")\r\n    end, cc.Handler.EVENT_KEYBOARD_RELEASED)\r\n    local eventDispatcher = self:getEventDispatcher()\r\n    eventDispatcher:addEventListenerWithSceneGraphPriority(listener, self)`\r\n3.just build and run and then press any key, nothing print in xcode's console\r\n"}}
{"actor":{"display_login":"scanor"}}