This is both a jEdit issue and a plugin issue. Originally, as in Java before 1.4, there was only Component.requestFocus(). There are many of these calls in both jEdit and in many of the plugins. This call causes the window containing the component to receive focus, even if another application currently has the focus. For example, start a compile in the Console plugin that will take more than a few seconds, switch to another window to do some other work while the compiling is going on, then watch jEdit steal the focus back when the compilation is complete. The right call, introduced in Java 1.4, is Component.requestFocusInWindow. Unfortunately, there are a lot of these calls, about 80 in jEdit itself, and another 100 or so in the plugins that I have the source for locally.
Log in to post a comment.