mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-79312 text cursor gets lost
This commit is contained in:
@@ -149,9 +149,7 @@ public abstract class FocusCommand extends ActiveRunnable implements Expirable {
|
||||
@NotNull
|
||||
public final ActionCallback run() {
|
||||
if (myToFocus != null) {
|
||||
if (!myToFocus.requestFocusInWindow()) {
|
||||
myToFocus.requestFocus();
|
||||
}
|
||||
myToFocus.requestFocusInWindow();
|
||||
}
|
||||
clear();
|
||||
return new ActionCallback.Done();
|
||||
|
||||
@@ -629,7 +629,7 @@ public class ProgressWindow extends BlockingProgressIndicator implements Disposa
|
||||
}
|
||||
}
|
||||
|
||||
getFocusManager().requestFocus(myCancelButton, true);
|
||||
myCancelButton.requestFocusInWindow();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user