jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.49k stars 743 forks source link

Support Cut Copy and Paste via context menus of text morphs #1080

Open cycomachead opened 8 years ago

cycomachead commented 8 years ago

Now that we can select text, and use keyboard shortcuts, we need to be able to do this from a GUI.

Because:

If there's a "selection", then "cut" and "copy" should show, otherwise, just "paste".

For future reference: https://hacks.mozilla.org/2015/09/flash-free-clipboard-for-the-web/

jmoenig commented 8 years ago

Yep, agreed!

cycomachead commented 8 years ago

So, I was taking a crack at this, and I realized I'm not sure which elements the context menu belongs to....

Those seem to be the only 3 containers for text input, but I'm not sure...

cycomachead commented 8 years ago

For reference, coming to Safari (finally): https://webkit.org/blog/6017/introducing-safari-technology-preview/