Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 7703793

Browse files
authored
fix: hookup 'install' button to return-key once button was created (#927) (#930)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent 76d50fd commit 7703793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jboss/tools/intellij/openshift/ui/helm/install/InstallPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ private void createComponents() {
141141
.withValidator(new ReleaseNameValidator(releaseNameText))
142142
.installOn(releaseNameText)
143143
.andRegisterOnDocumentListener(releaseNameText);
144-
releaseNameText.addKeyListener(onKeyPressed(installButton));
145144
add(releaseNameText, "spanx 2, pushx, growx");
146145

147146
this.installButton = new JButton("Install");
148147
installButton.addActionListener(this::onInstall);
149148
add(installButton, "pushx, alignx right, aligny center, wrap");
149+
releaseNameText.addKeyListener(onKeyPressed(installButton));
150150

151151
add(new JBLabel("Active " + (odo.isOpenShift() ? "project:" : "namespace:")), "skip, pushx");
152152
this.currentProjectLabel = new JBLabel();

0 commit comments

Comments
 (0)