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)

ROOT
  • 11,363
  • 5
  • 30
  • 45
Ashok
  • 6,224
  • 2
  • 37
  • 55

3 Answers3

115

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.

russbishop
  • 16,587
  • 7
  • 61
  • 74
8

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

Miti shah
  • 91
  • 2
  • 6
  • In my case `Connect hardware keyboard` was enabled, disabling it worked, thanks anyways for pointing to this +1 – AamirR Mar 06 '19 at 17:45
1

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.

kyu
  • 111
  • 1
  • 10