Skip to content

Commit a4859d0

Browse files
author
Vitaliy
authored
Merge pull request #515 from eduard13/form-field-focus
Focusing the entity name field after opening the Entity dialog
2 parents bd1270d + eb3aa96 commit a4859d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewEntityDialog.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ public NewEntityDialog(final @NotNull Project project, final PsiDirectory direct
218218
public void windowClosing(final WindowEvent event) {
219219
onCancel();
220220
}
221+
222+
@Override
223+
public void windowOpened(WindowEvent e) {
224+
entityName.requestFocus();
225+
}
221226
});
222227

223228
initializeComboboxSources();

0 commit comments

Comments
 (0)