是否有办法在进入事件时停止aggrid单元格的默认行为?
我尝试e.p preventdefault()似乎没有什么阻止它退出编辑模式,当我按下回车键,我试图做一个自定义逻辑按下回车键,它不允许我!
经过进一步的观察,我发现了一个名为supressKeyboardEvent
的函数,它将params
作为参数并返回一个布尔值(是否应该抑制事件)。
更多细节请参考官方Ag网格来源:https://www.ag-grid.com/javascript-data-grid/keyboard-navigation/#suppress-keyboard-events