Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/05/2003, 03:59
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola, abuenog.

No se si habrá alguna forma más sencilla, pero prueba esto a ver si te vale (se activa con control+c)
Código PHP:
<html>

<
head>
<
script>
var 
ctrl=false;
function 
pulsar(e) {
    
tecla=(document.all) ? e.keyCode e.which;
    if (
tecla==17ctrl=true;
    if (
ctrl && tecla==67) {
        
alert('Ctrl+c');
        return 
false }
}
function 
soltar() {
    
ctrl=false }
</script>
</head>
<body>

<input type="text" onKeyDown="return pulsar(event)" onKeyUp="soltar()">

</body>

</html> 
Saludos,