I think Jakob Kummerow is saying this particular board doesn't want to deal with this question.
Since navigator.clipboard inherits from Event you can attach an event listener directly to the object and fire your own custom event. On Mon, Sep 4, 2023 at 8:11 AM Mahmoud Galal <[email protected]> wrote: > So where I could look for that ? > > On Monday, 4 September 2023 at 12:35:03 UTC+3 Jakob Kummerow wrote: > >> Note that all of this is out of scope on this mailing list. As far as V8 >> is concerned, typeof navigator === "undefined". >> >> >> On Sun, Sep 3, 2023 at 6:55 PM guest271314 <[email protected]> wrote: >> >>> You can do something like >>> >>> navigator.clipboard.addEventListener('writetext', (e) => { >>> console.log(e); >>> }); >>> var text = '123'; >>> addEventListener('click', async () => { >>> await navigator.clipboard.writeText(text) >>> .then(() => navigator.clipboard.dispatchEvent(new >>> CustomEvent('writetext', {detail:{textWrittenToClipboard:text}})) >>> ).catch(console.error); >>> }, {once: true}); >>> >>> On Saturday, September 2, 2023 at 10:44:38 AM UTC-7 [email protected] >>> wrote: >>> >>>> Hello >>>> >>>> I wonder why there's no Event that fire, on a clipboard changes? >>>> >>>> the existed events, are available only on copy, and paste >>>> >>>> most buttons that copy content in the clipboard, uses the writeText() >>>> method >>>> >>>> which doesn't fire any of the available events >>>> >>>> so how about having a event about the changed that happen to the >>>> clipboard, on a writeText, or even just onChange >>>> >>>> and if it possible, how can I contribute to impelement it ? >>> >>> -- >>> >> -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-dev/5040f9cc-fc55-4e01-aa79-53ad27f0739cn%40googlegroups.com > <https://groups.google.com/d/msgid/v8-dev/5040f9cc-fc55-4e01-aa79-53ad27f0739cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CA%2BsyWAPZVaAFbctaOqu9TkLLGNrRLX7TNqT3nawdU-3ukrNy3g%40mail.gmail.com.
