Skip to content

Commit d6755b9

Browse files
committed
Minor: Remove unnecessary action binding
1 parent 66405cf commit d6755b9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/ui/KotlinParameterTablePanel.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,6 @@ public void actionPerformed(@NotNull ActionEvent e) {
216216
}
217217
});
218218

219-
// F2: edit parameter name
220-
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), "edit_parameter_name");
221-
actionMap.put("edit_parameter_name", new AbstractAction() {
222-
@Override
223-
public void actionPerformed(@NotNull ActionEvent e) {
224-
if (!myTable.isEditing()) {
225-
int row = myTable.getSelectedRow();
226-
if (row >= 0 && row < myTableModel.getRowCount()) {
227-
TableUtil.editCellAt(myTable, row, MyTableModel.PARAMETER_NAME_COLUMN);
228-
}
229-
}
230-
}
231-
});
232-
233219
// make ENTER work when the table has focus
234220
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "invoke_impl");
235221
actionMap.put("invoke_impl", new AbstractAction() {

0 commit comments

Comments
 (0)