electron-clipboard-ex icon indicating copy to clipboard operation
electron-clipboard-ex copied to clipboard

Detect copy vs cut on Windows

Open erikjalevik opened this issue 3 years ago • 2 comments

Do you have any plans on adding support for detecting whether files were put in the clipboard via a copy or a cut command on Windows?

It should be possible according to this section on "Delete on paste":

https://docs.microsoft.com/en-us/windows/win32/shell/datascenarios?redirectedfrom=MSDN#handling-delete-on-paste-operations

erikjalevik avatar Aug 02 '22 11:08 erikjalevik

@erikjalevik No, this is currently not planned. Let me check the doc and consider if it should be added. BTW, do you know about the mac counterpart? I am asking because I would like to make every function in this lib cross-platform.

kenan2002 avatar Aug 16 '22 09:08 kenan2002

Mac's Finder doesn't actually support cutting files, so it shouldn't be an issue there. Instead they have the concept of "special paste", where you can decide whether to copy or move at the time of pasting.

See: https://www.howtogeek.com/735756/how-to-cut-and-paste-files-on-mac/

erikjalevik avatar Aug 16 '22 09:08 erikjalevik