@@ -62,6 +62,10 @@ public FindReplace(Editor editor, Map<String, Object> state) {
62
62
isTranslucencySupported ();
63
63
initComponents ();
64
64
65
+ if (OSUtils .isWindows ()) {
66
+ setAutoRequestFocus (false );
67
+ }
68
+
65
69
if (OSUtils .isMacOS ()) {
66
70
buttonsContainer .removeAll ();
67
71
buttonsContainer .add (replaceAllButton );
@@ -80,6 +84,10 @@ public FindReplace(Editor editor, Map<String, Object> state) {
80
84
81
85
editor .addWindowListener (new WindowAdapter () {
82
86
public void windowActivated (WindowEvent e ) {
87
+ if (OSUtils .isWindows ()) {
88
+ toFront ();
89
+ return ;
90
+ }
83
91
findField .requestFocusInWindow ();
84
92
findField .selectAll ();
85
93
setAlwaysOnTop (true );
@@ -89,12 +97,18 @@ public void windowActivated(WindowEvent e) {
89
97
}
90
98
}
91
99
public void windowDeactivated (WindowEvent e ) {
100
+ if (OSUtils .isWindows ()) {
101
+ return ;
102
+ }
92
103
setAlwaysOnTop (false );
93
104
}
94
105
});
95
106
96
107
addWindowListener (new WindowAdapter () {
97
108
public void windowActivated (WindowEvent e ) {
109
+ if (OSUtils .isWindows ()) {
110
+ return ;
111
+ }
98
112
findField .requestFocusInWindow ();
99
113
findField .selectAll ();
100
114
setAlwaysOnTop (true );
0 commit comments