Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When closing the terminal by keyboard shortcut, the text editor does always gain focus again. #93

Open
trusktr opened this issue Jan 23, 2019 · 5 comments
Labels
bug report 🐛 Something isn't working

Comments

@trusktr
Copy link

trusktr commented Jan 23, 2019

Sometime the text editor does gain focus again, but I'm not sure what I did in the cases when it doesn't.

So I end up having to go the touchpad or mouse and then click on the editor to use it.

It'd be nice if maybe there was an option to force termination:toggle command to always focus the current tab's editor (or if there's multiple panes, maybe the last used tab?).

@trusktr
Copy link
Author

trusktr commented Jan 23, 2019

Ah, think I found what causes it: when the window loses focus!

When it works: If I open the terminal while I am in a text editor, then close the terminal, the editor gains focus again as expected.

When it doesn't work: If I open the terminal while I am in a text editor, then switch to another window (another app, or even just another Atom window), then return, then close the terminal, the editor does not gain focus after closing the terminal. At this point, nothing seems to be focused, or at least I don't know what's focused. Then I click on the editor to continue.

I'm in macOS Mojave.

@trusktr
Copy link
Author

trusktr commented Jan 23, 2019

I can confirm exactly the same thing with the file explorer. For example, without switching windows, if I start in the file explorer, open terminal then close terminal, I end up back in the file explorer. But if I switch windows then come back before closing the terminal, then focus goes nowhere (or somewhere but I've no idea where).

@trusktr
Copy link
Author

trusktr commented Jan 23, 2019

One way I can work around this is to just always close the terminal when I'm done with it. That way any time I need it, I open it, use it, close it. Then I return to where I was focused. At this point switching windows will not lose the focus.

@Fred-Barclay
Copy link
Collaborator

Hi @trusktr Sorry about that. I'll see if I can figure out what's going on. 😄

@trusktr
Copy link
Author

trusktr commented Feb 18, 2019

I noticed another way to trigger it: using only keyboard shortcuts (haven't tested with mouse) do the following: toggle terminal open, switch to next or previous terminal, toggle terminal closed. Then notice the panel you return to has no focus. The focus seems to have gone into oblivion until we click somewhere with the mouse.

@the-j0k3r the-j0k3r added the bug report 🐛 Something isn't working label Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🐛 Something isn't working
Development

No branches or pull requests

3 participants