I\'m working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I\'m switching the app
Found a great solution that worked for me.
Open simulator, then find menu Hardware -> Keyboard has three options:
I just tried what you just said and it's true, it doesn't work if I move it to landscape and then to portrait again. It doesn't have any logic because my app is not even changing, and it works fine in the device, so it's a bug in the simulator.
You can report it to Apple using this:
https://developer.apple.com/bug-reporting/
XCode 12: In the simulator window, from the top pane, I/O>Input>Send Keyboard Input to Device
or alt-command-k
CMD + SHIFT + K
I have pressed this command 2 times to toggle and then it started working
Before you start typing (when the on-screen keyboard shows up), press just the command key by itself and then release it. This should re-enable the keyboard in the simulator.
The solution that really work for me, was deleted the simulator and create new one. This bug I think that commonly occur when all shortcuts does not work from your keyboard to simulator.