File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public void windowClosing(final WindowEvent event) {
193
193
);
194
194
195
195
addComponentListener (
196
- new FocusOnAFieldListener (() -> cronjobNameField .requestFocusInWindow ())
196
+ new FocusOnAFieldListener (() -> cronjobClassNameField .requestFocusInWindow ())
197
197
);
198
198
}
199
199
Original file line number Diff line number Diff line change @@ -152,7 +152,13 @@ public void windowClosing(final WindowEvent event) {
152
152
JComponent .WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
153
153
);
154
154
155
- addComponentListener (new FocusOnAFieldListener (() -> packageName .requestFocusInWindow ()));
155
+ addComponentListener (new FocusOnAFieldListener (() -> {
156
+ if (packageName .isVisible ()) {
157
+ packageName .requestFocusInWindow ();
158
+ } else {
159
+ moduleName .requestFocusInWindow ();
160
+ }
161
+ }));
156
162
}
157
163
158
164
private void detectPackageName (final @ NotNull PsiDirectory initialBaseDir ) {
You can’t perform that action at this time.
0 commit comments