On Mon, May 25, 2015, at 11:04 AM, Ehsan Akhgari wrote: > On 2015-05-23 5:02 AM, Jesper Kristensen wrote: > > Very nice, I am looking very much forward to using this. > > > > It would be nice of you could also support paste. I agree that it is > > more sensitive, so maybe you could go with a user prompt in that case? > > The prompts as implemented in IE are horrible, but I think there could > > be many better ways of doing it. > > > > Here is one way I have thought of how a prompt could look like, since > > you only allow it in relation to user interaction, you could make a > > prompt that looks like a context menu for the element the user > > interacted with, using a single word describing the action. I have > > implemented a mockup at http://jsfiddle.net/vvjcgj5g/1/ but I am sure > > Mozilla UX people could come up with better ways to do this. (My mockup > > has a prompt for all three actions, but you could do it for paste only) > > Handling paste is a difficult topic, and I definitely don't have a good > answer yet.
Additionally, the 'paste' event from the spec already works, which seems like it provides pretty useful functionality for webapps. The user can use Ctrl+V or Edit->Paste or whatever existing UI mechanism the browser has to trigger a paste, and the page can handle the event to do something useful with the pasted data. -Ted _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform