ToolWindow: focus goes back to editor on keyboard events

Answered

Hi! 

I'm trying to implement a similar to the "Problems view" tool window for the Dart language and got stuck with the focus issues - I've added actions for quick fixes (option + enter) and copy description (cmd + c), but the moment I press the shortcut - the focus goes to the editor and the standard action is executed. Same goes for just pressing "enter" or "backspace" keys when the tool window is focused (even though the focus is shown in the tool window, the event is forwarded to the editor and the source code is being modified when I press these keys).

Can this be fixed?

0
2 comments

Can you reproduce this on different operating systems and/or IDE versions?

0

Hmm... Great question. I'm developing for pluginSinceBuild = 221, but test other plugins and the "Problem view" on Build #IC-223.7571.182. Curious, if this is the reason, coz after checking the "Problem view" and the official Dart plugin (and they both work as expected), I started to think that I'm missing some "focus lock" flag or something. Will check on the latest version of the IDE and get back, thanks!

0

Please sign in to leave a comment.