[BLUEJ-515] Component in new window can't get keyboard focus
See attached example program. A newly created window with a focusable component in a window doesn't receive focus when run in BlueJ, but does from the command line.
Problem seems to lie in ExecServer, these lines:
{noformat} // To make sure that screen readers announce the window being open, // we de-focus and re-focus it once the right application has focus: KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); ((Window)source).requestFocus(); {noformat}
... when commented out, the problem goes away.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 3.1.4