Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/06/2003, 13:24
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
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,

Última edición por JavierB; 10/06/2003 a las 13:46