<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Supporting the system clipboard in your Web Applications: Part Two</title>
	<atom:link href="http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brook Novak</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-41543</link>
		<dc:creator>Brook Novak</dc:creator>
		<pubDate>Sun, 02 Aug 2009 10:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-41543</guid>
		<description>Awesome articles, very helpful. I also used the textarea technique in my web app to get at the system clipboard via keystrokes - but i never thought of using tiny floats... thanks! 

I have also written a similar article at http://brooknovak.wordpress.com/2009/07/28/accessing-the-system-clipboard-with-javascript/ which explores some other approaches, check it out

Cheers</description>
		<content:encoded><![CDATA[<p>Awesome articles, very helpful. I also used the textarea technique in my web app to get at the system clipboard via keystrokes &#8211; but i never thought of using tiny floats&#8230; thanks! </p>
<p>I have also written a similar article at <a href="http://brooknovak.wordpress.com/2009/07/28/accessing-the-system-clipboard-with-javascript/" rel="nofollow">http://brooknovak.wordpress.com/2009/07/28/accessing-the-system-clipboard-with-javascript/</a> which explores some other approaches, check it out</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Goody</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40838</link>
		<dc:creator>Sam Goody</dc:creator>
		<pubDate>Sun, 17 May 2009 19:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40838</guid>
		<description>Having read both articles and looked at the code - 

1)
Are you able to have a &#039;copy&#039; button/icon and a &#039;paste&#039; button/icon that lets you copy/paste from an external editor into the browser?
If so, how?  Can you give a more generic (non-Dojo) description?

2)
If not, why is Ctrl-XCV not working - isn&#039;t this supported by all browsers?  (IE. I just copied and pasted this post from Notepad++)</description>
		<content:encoded><![CDATA[<p>Having read both articles and looked at the code &#8211; </p>
<p>1)<br />
Are you able to have a &#8216;copy&#8217; button/icon and a &#8216;paste&#8217; button/icon that lets you copy/paste from an external editor into the browser?<br />
If so, how?  Can you give a more generic (non-Dojo) description?</p>
<p>2)<br />
If not, why is Ctrl-XCV not working &#8211; isn&#8217;t this supported by all browsers?  (IE. I just copied and pasted this post from Notepad++)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wired Earp</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40549</link>
		<dc:creator>Wired Earp</dc:creator>
		<pubDate>Fri, 20 Mar 2009 11:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40549</guid>
		<description>@liucougar: In Firefox, the onpaste/oncut/oncopy events fire too late, or too weird, for this to work. Key combo listeners will do the trick, but the odd fact is that paste combo Shift+Insert is mangled: The textarea receives the focus alright, but nothing gets pasted into it.</description>
		<content:encoded><![CDATA[<p>@liucougar: In Firefox, the onpaste/oncut/oncopy events fire too late, or too weird, for this to work. Key combo listeners will do the trick, but the odd fact is that paste combo Shift+Insert is mangled: The textarea receives the focus alright, but nothing gets pasted into it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liucougar</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40508</link>
		<dc:creator>liucougar</dc:creator>
		<pubDate>Thu, 12 Mar 2009 07:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40508</guid>
		<description>IMO, a better way of doing this is listening to onpaste/oncut/oncopy, instead of listening to onkeydown of ctrl+v/ctrl+x/ctrl+c

keyboard shortcut will trigger onpaste/oncut/oncopy (right after onkeydown), so for keyboard events, it works the same, while this also works if user choose copy/paste/cut from the brower Edit menu or from the native browser context menu (if the native context menu is used there)</description>
		<content:encoded><![CDATA[<p>IMO, a better way of doing this is listening to onpaste/oncut/oncopy, instead of listening to onkeydown of ctrl+v/ctrl+x/ctrl+c</p>
<p>keyboard shortcut will trigger onpaste/oncut/oncopy (right after onkeydown), so for keyboard events, it works the same, while this also works if user choose copy/paste/cut from the brower Edit menu or from the native browser context menu (if the native context menu is used there)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unscriptable</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40494</link>
		<dc:creator>unscriptable</dc:creator>
		<pubDate>Fri, 06 Mar 2009 23:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40494</guid>
		<description>@Dave,

If you notice, Dion is using tabIndex=-1.  This prevents the text area from getting focus.  If for some reason you can&#039;t use this, then you could just use right: 101% to position the text area.  This won&#039;t scroll the page if it gets focus.  

-- John</description>
		<content:encoded><![CDATA[<p>@Dave,</p>
<p>If you notice, Dion is using tabIndex=-1.  This prevents the text area from getting focus.  If for some reason you can&#8217;t use this, then you could just use right: 101% to position the text area.  This won&#8217;t scroll the page if it gets focus.  </p>
<p>&#8211; John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Johnson</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40491</link>
		<dc:creator>Dave Johnson</dc:creator>
		<pubDate>Fri, 06 Mar 2009 19:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40491</guid>
		<description>One thing that we ran into with the hidden textarea approach is placement of the textarea element. When the textarea gets focus it will try to scroll to that position on the page (-100px in this case). Not a problem for Bespin since the browser scroll bar is not used I guess :) but can be annoying in a general case.</description>
		<content:encoded><![CDATA[<p>One thing that we ran into with the hidden textarea approach is placement of the textarea element. When the textarea gets focus it will try to scroll to that position on the page (-100px in this case). Not a problem for Bespin since the browser scroll bar is not used I guess :) but can be annoying in a general case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Almaer</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40490</link>
		<dc:creator>Dion Almaer</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40490</guid>
		<description>@Ben,

Ah yes, I *really* don&#039;t want this to happen to you again (and anyone else). Also, just in case, I will be the large chap with glasses, and Ben is the slightly taller and smaller chap.

Some bad photos: http://www.flickr.com/search/?w=all&amp;q=Ben+Galbraith+Dion+Almaer&amp;m=text

Looking forward to meeting you there!</description>
		<content:encoded><![CDATA[<p>@Ben,</p>
<p>Ah yes, I *really* don&#8217;t want this to happen to you again (and anyone else). Also, just in case, I will be the large chap with glasses, and Ben is the slightly taller and smaller chap.</p>
<p>Some bad photos: <a href="http://www.flickr.com/search/?w=all&amp;q=Ben+Galbraith+Dion+Almaer&amp;m=text" rel="nofollow">http://www.flickr.com/search/?w=all&amp;q=Ben+Galbraith+Dion+Almaer&amp;m=text</a></p>
<p>Looking forward to meeting you there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Almaer</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40489</link>
		<dc:creator>Dion Almaer</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40489</guid>
		<description>@unscriptable,

Great points. We do use pub/sub as a way to event into the right scope. _editor is a cheat for this example. I *love* pub/sub (and will do a post on our usage of that shortly).

I changed the code to use the copynpaster too, great idea. Thanks!</description>
		<content:encoded><![CDATA[<p>@unscriptable,</p>
<p>Great points. We do use pub/sub as a way to event into the right scope. _editor is a cheat for this example. I *love* pub/sub (and will do a post on our usage of that shortly).</p>
<p>I changed the code to use the copynpaster too, great idea. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Almaer</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40488</link>
		<dc:creator>Dion Almaer</dc:creator>
		<pubDate>Fri, 06 Mar 2009 05:32:43 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40488</guid>
		<description>@James,

Ah, good point. I will have to test to see if CTRL-Insert/SHIFT-Insert fire the on* events for WebKit. On Firefox, if they cause a copy/paste then I should be able to just wire them up and be good to go.

Thanks! Filed this as a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=481801</description>
		<content:encoded><![CDATA[<p>@James,</p>
<p>Ah, good point. I will have to test to see if CTRL-Insert/SHIFT-Insert fire the on* events for WebKit. On Firefox, if they cause a copy/paste then I should be able to just wire them up and be good to go.</p>
<p>Thanks! Filed this as a bug: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=481801" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=481801</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James MacFarlane</title>
		<link>http://almaer.com/blog/supporting-the-system-clipboard-in-your-web-applications-part-two/comment-page-1#comment-40485</link>
		<dc:creator>James MacFarlane</dc:creator>
		<pubDate>Thu, 05 Mar 2009 21:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog/?p=2296#comment-40485</guid>
		<description>Hi Dion,

Being left-handed, I never use Cmd/Ctrl-C X V. I would have to take my hand off the mouse to do that. I use CTRL-Insert (copy) and SHIFT-Insert (paste).

This works in almost every Windows app, except for those by Adobe for some reason. It would be nice if it could work here too.</description>
		<content:encoded><![CDATA[<p>Hi Dion,</p>
<p>Being left-handed, I never use Cmd/Ctrl-C X V. I would have to take my hand off the mouse to do that. I use CTRL-Insert (copy) and SHIFT-Insert (paste).</p>
<p>This works in almost every Windows app, except for those by Adobe for some reason. It would be nice if it could work here too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
