- Home /
Can keyboard shortcuts using Command key, etc. be disabled on Mac OS X?
I want to use the command key as a control in my games, and other keys as well. But when I press another key while the command key is down, the system intercepts it and tries to do something. This generates a system beep, and Unity also loses the state of the second button (it thinks it is still being held down after being released, until you press it again). Is there a way to make the command key work like any other key? Or a way to disable other system-wide shortcuts, like Control-Arrow Key to change Spaces?
Answer by archaismic · Feb 01, 2013 at 08:11 AM
You'd have to create a script OUTSIDE of Unity to intercept the keystrokes at the listener on your OS, then possibly add that to the compiled version of the game to run before your game.
I don't recommend this, and it's not easy to do.
Your answer
Follow this Question
Related Questions
How to Setup Openssl & Facebook SDK With Android key HASH on mac OS 10.11.6 1 Answer
Standalone borderless window doesnt get keyboard input (Mac) 0 Answers
How to get Volumes list in MacOS build 1 Answer
Native Mac Plugin: EntryPointNotFoundException 2 Answers
Back button issue: when I use back button to close keyboard, it also close the scene. 2 Answers