Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug which was causing an unwanted "a" key event. #4

Merged
merged 1 commit into from
Jan 3, 2019
Merged

Fixed bug which was causing an unwanted "a" key event. #4

merged 1 commit into from
Jan 3, 2019

Conversation

pouwelsjochem
Copy link
Contributor

This bug happened when using the screenshot tool in MacOS. Simply handled it by just ignoring the event when the keyCode = kVK_ANSI_A because this shouldn't even happen in the 'flagsChanged' method.

Steps to reproduce the original bug: Simply add a "key" listener in the main.lua and print the keyName & phase. Start the simulator and create a screenshot with "cmd + shift + 4". Runtime:addEventListener("key", function(event) print(event.keyName, event.phase) end)

@CLAassistant
Copy link

CLAassistant commented Jan 3, 2019

CLA assistant check
All committers have signed the CLA.

@Shchvova Shchvova merged commit a3e19ed into coronalabs:master Jan 3, 2019
@Shchvova
Copy link
Contributor

Shchvova commented Jan 3, 2019

Thanks a lot! You submitted first ever community fix. Congrats and much gratitude!

I also noticed that window doesn't get key-up events, but I guess it's not much can be done with it.

ggcrunchy pushed a commit to ggcrunchy/corona that referenced this pull request Jul 8, 2021
Shchvova pushed a commit that referenced this pull request Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants