{"action":"opened","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/33582","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/33582/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/33582/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/33582/events","html_url":"https://github.com/godotengine/godot/issues/33582","id":521827580,"node_id":"MDU6SXNzdWU1MjE4Mjc1ODA=","number":33582,"title":"Key releases are ignored when the game window is not in focus","user":{"login":"starry-abyss","id":11571820,"node_id":"MDQ6VXNlcjExNTcxODIw","avatar_url":"https://avatars0.githubusercontent.com/u/11571820?v=4","gravatar_id":"","url":"https://api.github.com/users/starry-abyss","html_url":"https://github.com/starry-abyss","followers_url":"https://api.github.com/users/starry-abyss/followers","following_url":"https://api.github.com/users/starry-abyss/following{/other_user}","gists_url":"https://api.github.com/users/starry-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/starry-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starry-abyss/subscriptions","organizations_url":"https://api.github.com/users/starry-abyss/orgs","repos_url":"https://api.github.com/users/starry-abyss/repos","events_url":"https://api.github.com/users/starry-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/starry-abyss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-12T21:58:51Z","updated_at":"2019-11-12T21:58:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Godot version:**\r\n3.1.1\r\n\r\n**OS/device including version:**\r\nWindows 7\r\n\r\n**Issue description:**\r\nWhen the moment of minimizing/unfocusing the game window coincides with some key being in pressed state, the key's state is stuck until pressing and releasing again.\r\n\r\nProbably, the key states should rather be auto-released at the moment of minimizing/unfocusing the game window.\r\n\r\n**Steps to reproduce:**\r\n- Press right arrow key (or other key triggering movement in the game)\r\n- Without releasing the key, unfocus the game window (by clicking with mouse outside of the window) \r\n- Release the key\r\n- Watch the movement happening even that the key is not pressed\r\n\r\n**Minimal reproduction project:**\r\nAny project with direct hero control, like official Platformer 2D demo"}}
{"actor":{"display_login":"starry-abyss"}}