- From: Hugo <notifications@github.com>
- Date: Thu, 30 Nov 2017 23:33:18 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 1 December 2017 07:33:41 UTC
A focused selection is always visible. In this case we have a visible but unfocused selection. Users expect effective CTRL+C/V/P anytime a selection is _visible_? In this case, users can't know if the selection is focused or not. They see a blue selection so they expect interaction with it? To fulfill that expectation, maybe CTRL+C/V/P should move focus to a visible&&unfocused selection? Hmm, could be complicated; the focus move would need to be done after any ClipboardEvent handler has had a chance to cancel the default operation => ClipboardEvents must target the visible selection. Either way, I think it is safe to spec: "Set target to be the element that contains the start of the visible selection in document order, or the body element if there is no visible selection or cursor" -- 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/clipboard-apis/issues/57#issuecomment-348422946
Received on Friday, 1 December 2017 07:33:41 UTC