Mac only bug - Invalid value for enum KeyCode

Not sure if this is a known bug, but when you’re on a Mac anytime you hold Ctrl + Any key on the keyboard, this error appears. It happens in any game I play.

It breaks some of my own code too when I’m using UserInput events.

6 Likes

This may have been me. Will take a look when back in the office.

2 Likes

This will be fixed with a major update to how we handle input on OS X

4 Likes

Any ETA on when this update is coming?

Enabled but there was a problem. Trying again later today.

1 Like

There’s a more significant problem, this has been pushed back a week.

Welp, that was short lived!

The fix caused this:

oops

2 Likes

This should be fixed again

2 Likes

Sorry for the necro-bump, but this bug is back again. One of my game’s players reported to me that pressing the menu key on his Mac would start spamming his console with errors.
(Pressing the menu key on Mac causes the Invalid value for enum KeyCode error.)
image
Error occurs for all CoreScripts/LocalScripts listening to UserInputService key presses.
(User said their language was set to Canadian English, however they tried setting it to U.S English and other languages and it still errors. The person who notified me of the bug is using a regular Logitech keyboard.)

19 Likes

Big necro bump again. I’m seeing this error still happening to Mac players in our game. Please fix! It’s been 4 years!

Still happening. It’s not CTRL + Any key though as I do not get the error when I press these on my Mac. But I am getting “Invalid value for enum KeyCode” sometimes for input.KeyCode.

1 Like