KT-22333 Extract function: make name editor focused once again
This commit is contained in:
+1
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user