Skip to content

Commit

Permalink
ROU-4230: Escape key does not cancel cell editing
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-giulianasilva committed Apr 5, 2023
1 parent fba3b01 commit 5b039ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Providers/DataGrid/Wijmo/Features/ValidationMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ namespace Providers.DataGrid.Wijmo.Feature {
s: wijmo.grid.FlexGrid,
e: wijmo.grid.CellRangeEventArgs
): void {
// if the ESC key is pressed the e.cancel is true
if (e.cancel) return;

// get the new value
const newValue = s.activeEditor?.value ?? '';
let currentValue = '';
Expand Down

0 comments on commit 5b039ac

Please sign in to comment.