Here are the steps to reproduce.
- Go to https://www.ag-grid.com/javascript-data-grid/cell-editing/
- Click on any cell and press backspace.
- Cell is empty.
How to make it editable only on double click?
Here are the steps to reproduce.
How to make it editable only on double click?
You can use the suppressKeyboardEvent property in the column definition, which lets you choose which events to suppress.
See the documentation: https://www.ag-grid.com/javascript-data-grid/keyboard-navigation/#suppresskeyboardevent
For example, this prevents all keyboard events unless the user is in edit mode:
suppressKeyboardEvent: function (params) {
return !params.editing;
}
Full example here: https://stackblitz.com/edit/ag-grid-select-column-8ehfb6?file=index.js