Skip to content

Commit

Permalink
data grid fix the clipboard pasting when capslock is on
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyar-shamshi committed Feb 7, 2024
1 parent be85784 commit 836edf7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,7 @@ function defaultPasteResolver({

const isPasteShortcut = (event: React.KeyboardEvent) => {
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
if (event.shiftKey) {
return false;
} else if (event.altKey) {
if (event.shiftKey || event.altKey) {
return false;
}
return true;
Expand Down

0 comments on commit 836edf7

Please sign in to comment.