Last month I wrote about a nifty trick we implemented in Yahoo! Mail to copy an email address using the keyboard shortcut CTRL+C (CMD+C on OSX ) on a selected contact bubble or "Lozenge. The keyboard shortcut, while useful, was not something that was immediately obvious to users. For the functionality to be widely applicable, its important to support familiar UI paradigms that are mouse friendly too. The problem however is that most browsers do not natively support writing to Operating System Clipboard. This means that we had to figure out a way to trigger the copy to clipboard on mouse clicks on UI elements and UI paradigms like custom context menus ( hitting enter on a menu item etc.) I wrote a YUI 3 Node Plugin called gallery-clipboard that is available on YUI 3 Gallery to support this requirement.
The problem is not new and a while back, a very cool project called Zeroclipboard tackled this problem in a unique way by utilizing the ability of the Flash run-time to write to theRead More »from Copy to clipboard for User Initiated actions