You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copy keyboard shortcut throws an error in Firefox #1526
When left enableKeyboardShortcuts unchanged, which is true by default, select text in a cell, and CTRL+C, an error will be thrown Uncaught (in promise) DOMException: Clipboard write is not allowed.. The text is copied in clipboard despite the error.
I can confirm the issue is in Firefox + Windows. Chrome and Edge in Windows don't have this issue. My Firefox is up to date (161.0 (64-bit)).
A bit more into this, Firefox seems to cancel MRT's navigator.clipboard.writeText(cellValue) in cellKeyboardShortcuts() and use browser's native copy. When I select partial text in a cell, and check my clipboard, only selected text is actually copied. In Chrome where there is no error, entire cell is always copied regardless of selected text, which is the expected behaviour from MRT's copy keyboard shortcut.
Minimal, Reproducible Example - (Optional, but Recommended)
In Firefox on Windows, select cell text, and CTRL+C, then check console and there should be an error Uncaught (in promise) DOMException: Clipboard write is not allowed..
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
No response
Terms
I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Activity