Skip to content

Commit

Permalink
Fix primefaces#5192: Allow CTRL/SHIFT + ENTER for TextArea
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 30, 2023
1 parent a421b68 commit ef9ce5f
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 ef9ce5f

Please sign in to comment.