openexchangerates / javascript-sandbox-console

a mini interactive javascript console for library/plugin demos and homepages
http://openexchangerates.github.io/javascript-sandbox-console/
MIT License
319 stars 58 forks source link

Odd copy-paste behaviour #6

Open pdeschen opened 12 years ago

pdeschen commented 12 years ago

Hello,

It seems that copy-paste behaviour is not acting as expected within the sandbox div. The only way I could copy text from the sandbox was to first select text with the mouse, hold the left button then hitting ctrl-c. Could this be related to the way the sandbox grabs keystrokes and such?

Ubuntu Linux + Chrome if that matter.

wjcrowcroft commented 12 years ago

Yeah, I think I have an idea of why this is. I'll look into it, cheers.

luisochoa commented 6 years ago

This may be 7 years old but it isn't resolved so here's a solution:

Simply comment or delete all of this in sandbox-console.js line 181 and it should work.

this.el.delegate(".output", {
        click : this.focus
});