diff options
author | Florian Dieminger <me@fiji-flo.de> | 2021-02-11 18:24:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 18:24:42 +0100 |
commit | aaeeb9abf350ff53bc52223c6a2f6a15d755ae07 (patch) | |
tree | 3b8bb1f4d37a784a941ec5956973b569d47a3da9 /files/it/web/api/mouseevent/shiftkey/index.html | |
parent | eac9bdfdfb67b7748f4ffe6931a87b471ef4f2b5 (diff) | |
parent | e7651b26abb2031118b797bd4a4d707aa7f2e9b6 (diff) | |
download | translated-content-aaeeb9abf350ff53bc52223c6a2f6a15d755ae07.tar.gz translated-content-aaeeb9abf350ff53bc52223c6a2f6a15d755ae07.tar.bz2 translated-content-aaeeb9abf350ff53bc52223c6a2f6a15d755ae07.zip |
Merge pull request #40 from fiji-flo/unslugging-it
Unslugging it
Diffstat (limited to 'files/it/web/api/mouseevent/shiftkey/index.html')
-rw-r--r-- | files/it/web/api/mouseevent/shiftkey/index.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/files/it/web/api/mouseevent/shiftkey/index.html b/files/it/web/api/mouseevent/shiftkey/index.html new file mode 100644 index 0000000000..3365619bf1 --- /dev/null +++ b/files/it/web/api/mouseevent/shiftkey/index.html @@ -0,0 +1,47 @@ +--- +title: event.shiftKey +slug: Web/API/MouseEvent/shiftKey +tags: + - DOM + - Gecko + - Reference_del_DOM_di_Gecko + - Tutte_le_categorie +translation_of: Web/API/MouseEvent/shiftKey +translation_of_original: Web/API/event.shiftKey +original_slug: Web/API/Event/shiftKey +--- +<p>{{ ApiRef() }}</p> +<h3 id="Sommario" name="Sommario">Sommario</h3> +<p>Indica se il tasto SHIFT รจ stato premuto durante l'evento.</p> +<h3 id="Sintassi" name="Sintassi">Sintassi</h3> +<pre class="eval"><i>bool</i> = event.shiftKey +</pre> +<p><code>bool</code> restituisce <code>true</code> se il tasto SHIFT era premuto mentre l'evento si verificava, altrimenti <code>false</code>.</p> +<h3 id="Esempio" name="Esempio">Esempio</h3> +<pre><html> +<head> +<title>esempio tasto shift</title> + +<script type="text/javascript"> + +function mostraCarattere(e){ + alert( + "Tasto premuto: " + String.fromCharCode(e.charCode) + "\n" + + "Codice carattere: " + e.charCode + "\n" + + "Tasto SHIFT premuto: " + e.shiftKey + "\n" + + "Tasto ALT premuto: " + e.altKey + "\n" + ); +} + +</script> +</head> + +<body onkeypress="mostraCarattere(event);"> +<p>Prova a premere un tasto tenendo premuto SHIFT e prova a premere un tasto senza premere SHIFT.<br /> +Puoi anche provare a premere SHIFT+ALT.</p> +</body> +</html> +</pre> +<h3 id="Specifiche" name="Specifiche">Specifiche</h3> +<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-MouseEvent-shiftKey">shiftKey </a></p> +<p>{{ languages( { "en": "en/DOM/event.shiftKey", "pl": "pl/DOM/event.shiftKey" } ) }}</p> |