KT-22333 Extract function: make name editor focused once again

This commit is contained in:
Max Medvedev
2018-06-19 11:59:14 +03:00
committed by asedunov
parent 1e31d24e9b
commit 21ca06dace
@@ -213,8 +213,6 @@ public class KotlinExtractFunctionDialog extends DialogWrapper {
inputParametersPanel.setText("&Parameters"); inputParametersPanel.setText("&Parameters");
inputParametersPanel.setLabelFor(parameterTablePanel.getTable()); inputParametersPanel.setLabelFor(parameterTablePanel.getTable());
inputParametersPanel.add(parameterTablePanel); inputParametersPanel.add(parameterTablePanel);
functionNameField.requestFocus();
} }
@SuppressWarnings("SuspiciousMethodCalls") @SuppressWarnings("SuspiciousMethodCalls")
@@ -245,7 +243,7 @@ public class KotlinExtractFunctionDialog extends DialogWrapper {
@Override @Override
public JComponent getPreferredFocusedComponent() { public JComponent getPreferredFocusedComponent() {
return functionNameField; return functionNameField.getFocusableComponent();
} }
@Override @Override