handsontable - 以编程方式关闭自定义编辑器

handsontable - close custom editor programmatically

我想要 ESC 按钮默认触发的行为,不幸的是,该处理程序调用私有方法,所以我无法使用它

case keyCodes.ESCAPE:
    if (_this.isEditorOpened()) {
      _this.closeEditorAndRestoreOriginalValue(ctrlDown);
    }
    event.preventDefault();
    break;

我有什么想法可以关闭编辑器吗?

destroyEditor(revertOriginal)
Destroys current editor, renders and selects current cell.

正是我需要的