scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.47k stars 3.59k forks source link

adding copy and paste for Google translate extension #2832

Open ntlrsk opened 6 years ago

ntlrsk commented 6 years ago

The educators doing work with bilingual and translingual education in NYC are very excited about the Google translate extension and had a couple suggestions based on how they've seen students using Google translate and Scratch.

They said that it would be very helpful to have an option on the block right-click menu to Copy and Paste text for the translate block (and say and think blocks).

She wondered if there would be a way for students to copy the phase that comes out of the translate block, because right now it just displays but there isn't an easy way to output it. She wondered either the right-click menu -- or suggested a "copy text __" block in the Google translate extension that puts the text in the clipboard.

I realized a workaround would be to make a list, add the translate block to the list, and then highlight and highlight and use key commands to copy the text in the list, but I realize that's not easy.

WorldLanguages commented 6 years ago

You could use the HTML5 clipboard API to create a new block (maybe, in a new extension): "copy [text]". If the browser doesn't support it, you can just do prompt("Press Ctrl+C", text); as a workaround.

thisandagain commented 6 years ago

/cc @ericrosenbaum @picklesrus