Re: [w3c/clipboard-apis] Don't recommend user gesture in clipboard API (#75)

> But I'm wondering, couldn't your application use an [async](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) event handler and [wait](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) for the result in there

Weak "maybe" on that. The problem is that we don't know which events will trigger a clipboard request. Which means we would need to assume every event could do so. So how would we do a wait if we don't know if that wait would ever complete?

Might be some method that works here, but it sounds very hacky and brittle.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/75#issuecomment-1084139972
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/75/1084139972@github.com>

Received on Thursday, 31 March 2022 06:15:59 UTC