Recuperer 2 touches clavier
Fermé
astuces72
Messages postés
7296
Date d'inscription
vendredi 15 janvier 2010
Statut
Membre
Dernière intervention
18 mars 2023
-
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
- Certaines touches de mon clavier ne fonctionnent plus ✓ - Forum Clavier
- Changer clavier qwerty en azerty - Guide
- Comment récupérer un compte facebook piraté - Guide
- Clavier+ - Télécharger - Personnalisation
- Recuperer message whatsapp - Guide
1 réponse
animostab
Messages postés
2829
Date d'inscription
jeudi 10 mars 2005
Statut
Membre
Dernière intervention
11 novembre 2019
727
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