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?
请先登录再写评论。
You can find corresponding logic in ToolWindowManagerImpl.appendRequestFocusInEditorComponentCmd. It's doing approximately the following:
Thank you!