mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-61525 On activating IDEA frame by mouse click, the focus always goes where it was before deactivating
This commit is contained in:
@@ -742,14 +742,7 @@ public class FocusManagerImpl extends IdeFocusManager implements Disposable {
|
||||
myCallbackOnActivation = null;
|
||||
|
||||
if (cmd != null) {
|
||||
requestFocus(cmd, true).notify(callback).doWhenRejected(new Runnable() {
|
||||
public void run() {
|
||||
focusLastFocusedComponent(ideFrame);
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
focusLastFocusedComponent(ideFrame);
|
||||
requestFocus(cmd, true).notify(callback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user