You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by tm...@apache.org on 2022/05/27 16:57:21 UTC

[netbeans] branch master updated: Autofocus new name field when renaming folder #4076

This is an automated email from the ASF dual-hosted git repository.

tmysik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 6300260af8 Autofocus new name field when renaming folder #4076
     new 60a933e8df Merge pull request #4158 from junichi11/gh-4076-rename-panel
6300260af8 is described below

commit 6300260af85a4b422f22bb48c0deb15cfea0d454
Author: Junichi Yamamoto <ju...@apache.org>
AuthorDate: Fri May 27 15:31:55 2022 +0900

    Autofocus new name field when renaming folder #4076
---
 .../org/netbeans/modules/web/common/ui/refactoring/RenamePanel.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ide/web.common.ui/src/org/netbeans/modules/web/common/ui/refactoring/RenamePanel.java b/ide/web.common.ui/src/org/netbeans/modules/web/common/ui/refactoring/RenamePanel.java
index 5bea15fc4c..9ebc8db176 100644
--- a/ide/web.common.ui/src/org/netbeans/modules/web/common/ui/refactoring/RenamePanel.java
+++ b/ide/web.common.ui/src/org/netbeans/modules/web/common/ui/refactoring/RenamePanel.java
@@ -77,6 +77,12 @@ public class RenamePanel extends JPanel implements CustomRefactoringPanel {
         nameField.requestFocus();
     }
 
+    @Override
+    public boolean requestFocusInWindow() {
+        nameField.requestFocusInWindow();
+        return true;
+    }
+
     /** This method is called from within the constructor to
      * initialize the form.
      * WARNING: Do NOT modify this code. The content of this method is


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists