I’ve come across this several times, ctrl-c randomly does not copy. I think it’s caused by javascript or maybe some odd html syntax. I never spent the time to track down what caused it. Anyone know the typical/common causes of ctrl-c not working (to copy) on a website?
Speaking from a developers standpoint. What do we developers end up doing to break ctrl-c?
Just to clarify, I’m not interested in preventing copying. I’m trying to do the opposite, occasionally I find I’ve done something that is preventing ctrl-c from copying text, and that is not very user friendly on a text heavy site.
To be even more clear, the issue is not with selecting. You can select text just fine. When pressing ctrl-c to copy, it does nothing. I.E. I have text selected, then press ctrl-c and nothing happens.
I’ve found this sort of thing commonly happens when you’re trapping keyboard events to provide your own shortcuts and the code behind it is overly greedy. So you intend to give the user a ctrl-U shortcut for making a unicorn appear on the page, but in your event handler, you create a unicorn when ctrl is pressed along with U — but swallow all other events on the page involving ctrl.