ajaxorg/cloud9 — pull request #1172 by gjtorikian (2012-03-30 02:37:30+00:00)
Title: Implement cut/copy/paste in a context menu and the top menu

What the title says.

Originally, _clipboard.js_ was used to cut and copy files from the _edit_ menu up top. It still does that, but now, if you're selecting text, it'll cut/copy/paste that text. Also, there's a new context menu which cut/copy/pastes code in the editor.

The foundation for this is using Ace selectors. I should investigate how hard it would be to implement something like [ZeroClipboard](http://code.google.com/p/zeroclipboard/) (which is used on the dashboard) for true OS-copy-paste. For now, however, this minimal implementation is enough.

One last thing: when the context menu pops up, the Ace selection disappears. I've set an interval to keep that selection highlighted to prevent this. It's a problem with APF.