{"action":"created","issue":{"url":"https://api.github.com/repos/mu-editor/mu/issues/536","repository_url":"https://api.github.com/repos/mu-editor/mu","labels_url":"https://api.github.com/repos/mu-editor/mu/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/mu-editor/mu/issues/536/comments","events_url":"https://api.github.com/repos/mu-editor/mu/issues/536/events","html_url":"https://github.com/mu-editor/mu/issues/536","id":339929479,"node_id":"MDU6SXNzdWUzMzk5Mjk0Nzk=","number":536,"title":"pgzero window does not get focus and can't receive keyboard events.","user":{"login":"nanoflite","id":58341,"node_id":"MDQ6VXNlcjU4MzQx","avatar_url":"https://avatars3.githubusercontent.com/u/58341?v=4","gravatar_id":"","url":"https://api.github.com/users/nanoflite","html_url":"https://github.com/nanoflite","followers_url":"https://api.github.com/users/nanoflite/followers","following_url":"https://api.github.com/users/nanoflite/following{/other_user}","gists_url":"https://api.github.com/users/nanoflite/gists{/gist_id}","starred_url":"https://api.github.com/users/nanoflite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanoflite/subscriptions","organizations_url":"https://api.github.com/users/nanoflite/orgs","repos_url":"https://api.github.com/users/nanoflite/repos","events_url":"https://api.github.com/users/nanoflite/events{/privacy}","received_events_url":"https://api.github.com/users/nanoflite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-10T17:01:39Z","updated_at":"2018-07-11T08:56:58Z","closed_at":null,"author_association":"NONE","body":"I'm trying to receive keyboard events, but the pgzero window does not get focus. Clicking on the window also does not give it focus, so no keyboard events are received.\r\n\r\nI'm currently using 1.0.0.beta.17. The same bug is present in beta.16 as well.\r\nI'm on OSX.\r\n\r\n```\r\n2018-07-10 18:56:58,517 - mu.modes.pygamezero:134(run_game) DEBUG: def update():\r\n    if keyboard[keys.SPACE]:\r\n        print(\"SPACE\")\r\n2018-07-10 18:56:58,517 - mu.modes.base:71(get_default_workspace) ERROR: Workspace value in the settings file is not a validdirectory: /Volumes/CIRCUITPY\r\n2018-07-10 18:56:58,521 - mu.interface.panes:662(start_process) INFO: Running script: /Users/johan/Projects/pygame_shooter/keyboard.py\r\n2018-07-10 18:56:58,521 - mu.interface.panes:667(start_process) INFO: Command args: []\r\n2018-07-10 18:56:58,521 - mu.interface.panes:685(start_process) INFO: Working directory: /Users/johan/mu_code\r\n2018-07-10 18:56:58,521 - mu.interface.panes:690(start_process) INFO: Python path: ['/Applications/mu-editor.app/Contents/MacOS', '/Applications/mu-editor.app/Contents/Resources/python/lib/python36.zip', '/Applications/mu-editor.app/Contents/Resources/python/lib/python3.6', '/Applications/mu-editor.app/Contents/Resources/python/lib/python3.6/lib-dynload', '/Applications/mu-editor.app/Contents/Resources/python/lib/python3.6/site-packages', '/Applications/mu-editor.app/Contents/Resources/app', '/Applications/mu-editor.app/Contents/Resources/app_packages', '/Applications/mu-editor.app/Contents/Resources/app_packages/IPython/extensions']\r\n2018-07-10 18:58:54,968 - mu.logic:1045(show_admin) INFO: Showing logs from /Users/johan/Library/Logs/mu/mu.log\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mu-editor/mu/issues/comments/404096064","html_url":"https://github.com/mu-editor/mu/issues/536#issuecomment-404096064","issue_url":"https://api.github.com/repos/mu-editor/mu/issues/536","id":404096064,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA5NjA2NA==","user":{"login":"carlosperate","id":4189262,"node_id":"MDQ6VXNlcjQxODkyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4189262?v=4","gravatar_id":"","url":"https://api.github.com/users/carlosperate","html_url":"https://github.com/carlosperate","followers_url":"https://api.github.com/users/carlosperate/followers","following_url":"https://api.github.com/users/carlosperate/following{/other_user}","gists_url":"https://api.github.com/users/carlosperate/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosperate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosperate/subscriptions","organizations_url":"https://api.github.com/users/carlosperate/orgs","repos_url":"https://api.github.com/users/carlosperate/repos","events_url":"https://api.github.com/users/carlosperate/events{/privacy}","received_events_url":"https://api.github.com/users/carlosperate/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T08:56:58Z","updated_at":"2018-07-11T08:56:58Z","author_association":"MEMBER","body":"I can confirm I see the same issue in macOS running from a normal python installation and virtualenv AND from the official dmg release.\r\nIs there any info from my system that I can provide to check if I am running anything odd? (I've never used conda, but don't know if that and venv are the only situations where this happens)."}}
{"actor":{"display_login":"carlosperate"}}