File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 111
111
import com .magento .idea .magento2plugin .util .magento .GetAclResourcesListUtil ;
112
112
import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
113
113
import java .awt .event .ActionEvent ;
114
+ import java .awt .event .KeyAdapter ;
114
115
import java .awt .event .KeyEvent ;
115
116
import java .awt .event .WindowAdapter ;
116
117
import java .awt .event .WindowEvent ;
@@ -275,6 +276,13 @@ public void windowClosing(final WindowEvent event) {
275
276
JComponent .WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
276
277
);
277
278
279
+ entityName .addKeyListener (new KeyAdapter () {
280
+ @ Override
281
+ public void keyReleased (KeyEvent e ) {
282
+ entityName .setText (StringUtils .capitalize (entityName .getText ()));
283
+ }
284
+ });
285
+
278
286
entityName .getDocument ().addDocumentListener (new DocumentAdapter () {
279
287
@ SuppressWarnings ("PMD.AccessorMethodGeneration" )
280
288
@ Override
You can’t perform that action at this time.
0 commit comments