Skip to content

Commit

Permalink
fix(core): remove editor keydown keyCaptureList duplicate code (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Jan 11, 2024
1 parent 801bd4c commit c5f6b85
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/common/src/core/slickGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4767,12 +4767,6 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
}
if (!handled) {
if (!e.shiftKey && !e.altKey && !e.ctrlKey) {
// editor may specify an array of keys to bubble
if (this._options.editable && this.currentEditor?.keyCaptureList) {
if (this.currentEditor.keyCaptureList.indexOf(String(e.which)) > -1) {
return;
}
}
if (e.key === 'Escape') {
if (!this.getEditorLock()?.isActive()) {
return; // no editing mode to cancel, allow bubbling and default processing (exit without cancelling the event)
Expand Down

0 comments on commit c5f6b85

Please sign in to comment.