Hacker News new | ask | show | jobs
by waltpad 2185 days ago
I wonder how the clipboard API could be fixed.

I suppose that the current scheme is that apps are monitoring paste events, and when it happens have a look at the clipboard for copied data.

Perhaps the clipboard shouldn't be visible at all, and only when the user decides to paste content should the targeted app receive a "paste" message with the copied data (or perhaps some more complicated selection mechanism with a list of recent copies à la emacs). This would essentially merge the 2 steps process outlined above into a single operation.

It's probably more complicated than that though.

1 comments

I think we should have some kind of "clipboard firewall" where you can restrict if a clipboard copy operation in an app X could be pasted in app Y.

We have developed a free Windows app and will release it soon.