void (@NotNull Editor editor) { super.onEditorAdded(editor); final JComponent editorComponent = editor.getContentComponent(); editorComponent.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "ENTER"); editorComponent.getActionMap().put("ENTER", new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { stopCellEditing(); } }); }