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) {
193193 );
194194
195195 addComponentListener (
196- new FocusOnAFieldListener (() -> cronjobNameField .requestFocusInWindow ())
196+ new FocusOnAFieldListener (() -> cronjobClassNameField .requestFocusInWindow ())
197197 );
198198 }
199199
Original file line number Diff line number Diff line change @@ -152,7 +152,13 @@ public void windowClosing(final WindowEvent event) {
152152 JComponent .WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
153153 );
154154
155- addComponentListener (new FocusOnAFieldListener (() -> packageName .requestFocusInWindow ()));
155+ addComponentListener (new FocusOnAFieldListener (() -> {
156+ if (packageName .isVisible ()) {
157+ packageName .requestFocusInWindow ();
158+ } else {
159+ moduleName .requestFocusInWindow ();
160+ }
161+ }));
156162 }
157163
158164 private void detectPackageName (final @ NotNull PsiDirectory initialBaseDir ) {
You can’t perform that action at this time.
0 commit comments