Support clipboards with text/plain as well as file contents
This commit is contained in:
parent
17eb0948ea
commit
cc233fb980
1 changed files with 5 additions and 2 deletions
|
@ -52,8 +52,11 @@ export class SignalClipboard {
|
|||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
const clipboardContainsFiles = event.clipboardData.files?.length > 0;
|
||||
if (!clipboardContainsFiles) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
const clipboardDelta = signal
|
||||
? clipboard.convert(signal)
|
||||
|
|
Loading…
Reference in a new issue