How to focus tool window
Here is my old https://devnet.jetbrains.com/message/5528198#5528198, i wanna toggle "debugger" and "console" with one key, the last answer is use "alt+5" to tool window, and use "alt+left/right" to switch tabs, but it's too trouble in some deployment framework(there are useful output in console), so i have following questions:
- how to implement "navigate to console tool window"(alt+5) with openapi?
- how to implement "Select Previous Tab"(alt+Left) and "Select Next Tab"(alt+right) with openapi
- if it's possible, how to make focus return to last tool window(Like Editor) with openapi
请先登录再写评论。
1) https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/actions/ActivateToolWindowAction.java
2) https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/actions/NextTabAction.java
3) https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/actions/JumpToLastWindowAction.java