-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change prevents duplicate file pastes by checking if the paste event is a file paste before handling it. This is necessary because Safari doesn't support `beforeinput.insertFromPaste` for files, so we are handling file pastes in the paste event handler too. We need to check in the `beforeinput.insertFromPaste` event handler if the event will be also handled by the paste event handler, to avoid duplicate file pastes.
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters