Skip to content

Commit

Permalink
Fix #5192: Allow CTRL/SHIFT + ENTER for TextArea (#5195)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 30, 2023
1 parent 504e725 commit 938dd67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,10 @@ export const BodyCell = React.memo((props) => {
break;

//enter
case 13: // @deprecated
if (!DomHandler.isClickable(target)) {
case 13:
if (event.shiftKey || event.ctrlKey) {
// #5192 allow TextArea to add new lines
} else if (!DomHandler.isClickable(target)) {
onClick(event);
event.preventDefault();
}
Expand Down

0 comments on commit 938dd67

Please sign in to comment.