Re: [w3c/clipboard-apis] Should clipboard actions consider whether selection has focus? (#57)

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