Skip to content

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