Find previously focused editor from Toolwindow?
When the user has a tool window open, ESC will take them back to the previously-focused editor. Is it possible to figure out which editor or file that is while they still have the tool window focused?
Please sign in to leave a comment.
You can find corresponding logic in ToolWindowManagerImpl.appendRequestFocusInEditorComponentCmd. It's doing approximately the following:
Thank you!