Skip to content

Commit

Permalink
add equal sign to accepted edit start chars
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Mar 12, 2024
2 parents 97e6ca3 + ff41df0 commit 9228c70
Show file tree
Hide file tree
Showing 2 changed files with 2,677 additions and 4,223 deletions.
3 changes: 2 additions & 1 deletion packages/ui/src/DataTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,8 @@ class DataTable extends React.Component {
const rowDisabled = isEntityDisabled(entity);
const isNum = e.keyCode >= 48 && e.keyCode <= 57;
const isLetter = e.keyCode >= 65 && e.keyCode <= 90;
if (!isNum && !isLetter) return;
const isEqlSign = e.keyCode === 187;
if (!isNum && !isLetter && !isEqlSign) return;
if (rowDisabled) return;
this.startCellEdit(cellId, { shouldSelectAll: true });
e.stopPropagation();
Expand Down
Loading

0 comments on commit 9228c70

Please sign in to comment.