support icon indicating copy to clipboard operation
support copied to clipboard

Copy paste keyboard shortcuts do not work with Salesforce Locker

Open JockeLindberg opened this issue 10 months ago • 0 comments

Forum post

Hi,

We have discovered an issue with the keyboard shortcuts for cut/copy/paste (ctrl + c, ctrl + x, ctrl + v) with Salesforce locker (Lightning Web Security turned OFF).

Select a row Ctrl + C (this seems to work ok) Ctrl + V (this throws an error - see details below)

Select a row Ctrl + X (this throws an error too)

None of these error when LWS is turned on.

It appears that there is a check in paste() which compares referenceRecord to KeyboardEvent. This check is evaluating to false when I believe it should be true.

Screenshot 2024-04-25 at 13.54.28.png

Thanks, Josh Screenshot 2024-04-25 at 13.54.28.png

JockeLindberg avatar Apr 26 '24 08:04 JockeLindberg