event.keyCode

event.keyCode - HTML/CSS - Programmation

Marsh Posté le 31-05-2005 à 15:02:04    

est-ce que quelqu'un sait comment récuperer le code ASCII de la touche "debut de ligne"(à coté d'INSER) et de la touche "fin de ligne"(à coté de Suppr)
parce que je me sers de la fonction event.keyCode en Javascript et à mon avis c'est une combinaison de touche

Reply

Marsh Posté le 31-05-2005 à 15:02:04   

Reply

Marsh Posté le 31-05-2005 à 15:07:01    

C'est quasiment impossible


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 31-05-2005 à 15:14:45    

t'es drolement pessimiste Masklinn !
 
il doit y avoir moyen, je l'avais deja fait en C


Message édité par slash51 le 31-05-2005 à 15:15:43
Reply

Marsh Posté le 31-05-2005 à 15:18:26    

bah pourtant vu sur cette page ça rend 35 et 36
 
http://www.quirksmode.org/js/events/keys.html

Reply

Marsh Posté le 31-05-2005 à 15:22:26    

oui bah ça marche , c'est ça 36 et 35
mais ce qu'est bizarre c'est que 36 et 35 sont représentés par d'autres caractères dans la table ASCII

Reply

Marsh Posté le 31-05-2005 à 15:43:36    

ptet parce que c'est pas de l'ASCII [:dawa]
(et moi j'ai fait que citer Quirksmode:

Citation :

It is extremely difficult to detect arrow keys, function keys and Insert/Home/etc. keys.


Après si ça marche tant mieux)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed