migueldeicaza / SwiftTermApp

MIT License
309 stars 29 forks source link

Focus #156

Open migueldeicaza opened 2 years ago

migueldeicaza commented 2 years ago

There is definitely a focus issue going on, I noticed that if I left the terminal a long time, and then I came back, it was not responding, and I thought it had been a different issue, but eventually, in the debugger I noticed pressesBegan was never reached, some tapping in the menubars and other places unlocked it.

So something is preventing the terminal from getting input.

Repro: start a session, then go to Sessions, and where you see your terminal, tap on it. The terminal does not always respond, it might require a couple of tabs to enable. If it works, go back to the session list and try again.

Perhaps forcing a "becomeFirstResponder" is necessary