Replies: 1 comment 2 replies
-
Hi @Ziphil, thanks for bringing this up! I agree this is definitely unexpected. I'll open an issue to implement a workaround 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found the following unexpected behaviour about
Keyboard.isHeld
on MacOS Chrome. Here is how to reproduce:A
keyCommand
keyA
keyCommand
keyThen
engine.input.keyboard.isHeld(Input.Keys.A)
always returnstrue
even thoughA
key has been already released.After a little investigation, I found others facing the same problem. The reason is that on MacOS (regardless of the browser), the
keyup
event does not fire whenCommand
key is held. On Windows, everything is fine.The unexpected behaviour is thus not attributable to Excalibur, but to MacOS. However, as it is still unexpected, I suggest that some workaround be put on Excalibur. How about assuming that when
Control
key is released, the other keys are also released? How do you think?Beta Was this translation helpful? Give feedback.
All reactions