Mac keyboard shortcuts not working on iOS Simulator
Asked Answered
L

3

32

All the mac keyboard short cuts like Cmd + Q (Quit Simulator app), Cmd + K (Toggle keyboard hide/show in Simulator) etc has stopped workings for iOS Simulator app since this morning suddenly.

All other apps, including Xcode, shows the shortcut in menus and they are working fine.

I noticed, the shortcut keys shows up against menu items momentarily on launch of simulator but then disappears completely (see attached)...

enter image description here

I tried following but no success...

  • Launch simulator (Open Xcode project and then menu Product > Run. And, directly through menu Xcode > Open Developer Tools).

  • Erase All Content and Settings in Simulator...

  • Restart Mac

Xcode 9.0.1 (9A1004) | Mac 10.13 (17A405)

Lodhia answered 31/10, 2017 at 21:39 Comment(0)
E
116

You might have enabled (checked) the "Send all keyboard shortcuts to device" mode. It's in the Hardware > Keyboard submenu.

Pressing both Left and Right Cmd keys at the same time will exit keyboard capturing mode and re-enable menu shortcuts.

Enjoyment answered 14/11, 2017 at 7:15 Comment(4)
i.e. you need to DISABLE the "Send All Keyboard Shortcuts To Device" in order to make your keyboard shortcuts work again as the OP expect.Repress
My good luck i read this second answer. I believe we all prefer not manually deleting internal files unless there is no way around :)Phonate
This really helped. Thank you so much. I thought I was going crazy or that I screwed up my repo.Stilu
Thanks that real help.Healing
F
8

You might have disabled(unchecked) "Connect hardware keyboard" option which is in the hardware/keyboard menu. Make sure its checked.

Faria answered 2/7, 2018 at 7:2 Comment(1)
In my case Connect hardware keyboard was enabled, disabling it worked, thanks anyways for pointing to this +1Ovariectomy
B
2

Set which key stops capture shortcut

You may need to press the esc key on newer versions of the simulator. You can also choose which key stops shortcut capture.

Biskra answered 14/9, 2021 at 12:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.