web-cat / pythy

Pythy – the Cloud-Based IDE for Novice Python Programmers
18 stars 3 forks source link

Cut-and-paste is broken in the code editor #34

Open s-edwards opened 11 years ago

s-edwards commented 11 years ago

It does not appear to be possible to select/copy text in the code edit window, so it is impossible to move code blocks around, or cut-and-paste from one example/file to another.

The normal Cut/Copy/Paste keyboard shortcuts should definitely be implemented to work.

Also, while codemirror does seem to support the idea of "selection", the editor appears to immediately "lose" track of (and unhighlight) a selection right after it is made. I wonder if this is because of the Javascript actions that are saving the code changes periodically--are they interfering with the editor's selection?

s-edwards commented 11 years ago

Oops--paste works. Actually, it appears that copy may also work, but because the selection is messed up, it isn't useful (which also means cut is effectively broken).