1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00
phorge-phorge/webroot/rsrc
Ben Alpert 26c836e1e1 Simplify oncopy behavior
Summary:
Firefox has supported clipboardData since version 22 (Jul 2013), and even IE8 supports it if you look at `window.clipboardData` instead of `e.clipboardData`. As a result, we can simplify this code significantly.

I also used (or at least, attempted to) Javelin so that we can get the event object and preventDefault more easily. Plus, this way we don't assign to document.body.oncopy.

Test Plan: Copied a selection including a line number in Chrome, Firefox, and IE8. The line number didn't get copied.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8688
2014-04-03 09:20:55 -07:00
..
css Mobile Differential Diff Review (2-up) 2014-04-02 21:49:28 -07:00
externals Add a "Generate Keypair" option on the SSH Keys panel 2014-03-12 18:17:11 -07:00
image Tweak Psyduck 2014-03-27 19:36:51 -07:00
js Simplify oncopy behavior 2014-04-03 09:20:55 -07:00
swf Various linter fixes. 2014-02-26 12:44:58 -08:00