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

Please sign in to leave a comment.