- From: Chong Zhang <notifications@github.com>
- Date: Wed, 17 Aug 2016 15:33:43 -0700
- To: w3c/editing <editing@noreply.github.com>
Received on Wednesday, 17 August 2016 22:34:14 UTC
> Looking at the Clipboard API, this specific usage of preventDefault seems to be true for both copy and cut. So the way to stop things from appearing on the clipboard would be to intercept CTRL+C and CTRL+V? If we require that, we are back to before we had the beforeinput event. Actually I was thinking we should use the `Opt-in/opt-out` to control whether `cut` is enabled, if it's enabled CTRL+X and CTRL+C should always write something to the Clipboard (the data will be decided by `Clipboard API`). To stop things from appearing on the Clipboard JS should disable `cut` or `copy` through `Opt-in/opt-out`. > As for paste: it seems that the datatransfer data arriving at this stage cannot be changed any longer. So then paste and beforeinput insertFromPaste will be the same, right? Yes, just the order. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/144#issuecomment-240569921
Received on Wednesday, 17 August 2016 22:34:14 UTC