Hola de nuevo.
Cita: JavierB dijo hace algún tiempo:
No se si habrá alguna forma más sencilla, pero prueba esto a ver si te vale (se activa con control+c)
Pues si. Hay una forma un poco más sencilla. La pongo por si le sirve a alguien:
Código PHP:
<html>
<head>
<script>
function pulsar(e) {
tecla=(document.all) ? e.keyCode : e.which;
if (tecla==67 && e.ctrlKey) {
alert('Ctrl+c');
return false }
}
</script>
</head>
<body>
<input type="text" onKeyDown="return pulsar(event)">
</body>
</html>
Saludos,