src/macosx/classes/sun/lwawt/LWComponentPeer.java

Print this page

        

*** 1194,1206 **** Component target = getTarget(); assert (e.getSource() == target); if (!target.isFocusOwner() && LWKeyboardFocusManagerPeer.shouldFocusOnClick(target)) { LWKeyboardFocusManagerPeer.requestFocusFor(target, CausedFocusEvent.Cause.MOUSE_EVENT); - } else { - // Anyway request focus to the toplevel. - getWindowPeerOrSelf().requestWindowFocus(CausedFocusEvent.Cause.MOUSE_EVENT); } } /** * Handler for FocusEvents. --- 1194,1203 ----