Recuperer 2 touches clavier
Fermé
astuces72
Messages postés
7723
Date d'inscription
vendredi 15 janvier 2010
Statut
Membre
Dernière intervention
22 avril 2024
-
27 juin 2015 à 16:28
animostab Messages postés 2829 Date d'inscription jeudi 10 mars 2005 Statut Membre Dernière intervention 11 novembre 2019 - 27 juin 2015 à 17:01
animostab Messages postés 2829 Date d'inscription jeudi 10 mars 2005 Statut Membre Dernière intervention 11 novembre 2019 - 27 juin 2015 à 17:01
A voir également:
- Recuperer 2 touches clavier
- Comment récupérer un compte facebook piraté - Guide
- Recuperer message whatsapp - Guide
- Changer clavier qwerty en azerty - Guide
- Touche inser clavier - Guide
- Télécharger clavier arabe samsung - Télécharger - Bureautique
1 réponse
animostab
Messages postés
2829
Date d'inscription
jeudi 10 mars 2005
Statut
Membre
Dernière intervention
11 novembre 2019
738
27 juin 2015 à 17:01
27 juin 2015 à 17:01
salut
tu peux faire
non testé voir plus sur
https://www.commentcamarche.net/faq/18760-javascript-manipulation-des-controles-clavier
tu peux faire
function checkEventObj ( _event_ ){ // --- IE explorer if ( window.event ) return window.event; // --- Netscape and other explorers else return _event_; } puis dans ta function var winObj = checkEventObj(_event_); var intAltKey = winObj.altKey; var intCtrlKey = winObj.ctrlKey; if (intAltKey) { script de detection pour alt +} if (intCtrlKey) { script de detection pour ctrl +} else {script de detection key simple}
non testé voir plus sur
https://www.commentcamarche.net/faq/18760-javascript-manipulation-des-controles-clavier