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 111111import com .magento .idea .magento2plugin .util .magento .GetAclResourcesListUtil ;
112112import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
113113import java .awt .event .ActionEvent ;
114+ import java .awt .event .KeyAdapter ;
114115import java .awt .event .KeyEvent ;
115116import java .awt .event .WindowAdapter ;
116117import java .awt .event .WindowEvent ;
@@ -275,6 +276,13 @@ public void windowClosing(final WindowEvent event) {
275276 JComponent .WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
276277 );
277278
279+ entityName .addKeyListener (new KeyAdapter () {
280+ @ Override
281+ public void keyReleased (KeyEvent e ) {
282+ entityName .setText (StringUtils .capitalize (entityName .getText ()));
283+ }
284+ });
285+
278286 entityName .getDocument ().addDocumentListener (new DocumentAdapter () {
279287 @ SuppressWarnings ("PMD.AccessorMethodGeneration" )
280288 @ Override
You can’t perform that action at this time.
0 commit comments