From d6755b91eea6700a3ad55881a13ef26247fb0f2c Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Mon, 23 Jun 2014 20:21:02 +0400 Subject: [PATCH] Minor: Remove unnecessary action binding --- .../ui/KotlinParameterTablePanel.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/ui/KotlinParameterTablePanel.java b/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/ui/KotlinParameterTablePanel.java index b0aa81aa5a1..72416c626b0 100644 --- a/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/ui/KotlinParameterTablePanel.java +++ b/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/ui/KotlinParameterTablePanel.java @@ -216,20 +216,6 @@ public class KotlinParameterTablePanel extends JPanel { } }); - // F2: edit parameter name - inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), "edit_parameter_name"); - actionMap.put("edit_parameter_name", new AbstractAction() { - @Override - public void actionPerformed(@NotNull ActionEvent e) { - if (!myTable.isEditing()) { - int row = myTable.getSelectedRow(); - if (row >= 0 && row < myTableModel.getRowCount()) { - TableUtil.editCellAt(myTable, row, MyTableModel.PARAMETER_NAME_COLUMN); - } - } - } - }); - // make ENTER work when the table has focus inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "invoke_impl"); actionMap.put("invoke_impl", new AbstractAction() {