aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/event/altkey/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/event/altkey/index.html')
-rw-r--r--files/it/web/api/event/altkey/index.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/files/it/web/api/event/altkey/index.html b/files/it/web/api/event/altkey/index.html
new file mode 100644
index 0000000000..1ab63e4329
--- /dev/null
+++ b/files/it/web/api/event/altkey/index.html
@@ -0,0 +1,46 @@
+---
+title: event.altKey
+slug: Web/API/Event/altKey
+tags:
+ - DOM
+ - Gecko
+ - Reference_del_DOM_di_Gecko
+ - Tutte_le_categorie
+translation_of: Web/API/MouseEvent/altKey
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Sommario" name="Sommario">Sommario</h3>
+<p>Indica se il tasto ALT era premuto mentre l'evento si verificava.</p>
+<h3 id="Syntax" name="Syntax">Syntax</h3>
+<pre class="eval"><i>bool</i> = event.altKey
+</pre>
+<p><code>bool</code> vale <code>true</code> se il tasto ALT era premuto, altrimenti <code>false</code>.</p>
+<h3 id="Esempio" name="Esempio">Esempio</h3>
+<pre>&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;esempio tasto ALT&lt;/title&gt;
+
+&lt;script type="text/javascript"&gt;
+
+function mostraCarattere(e){
+ alert(
+ "Tasto premuto: " + String.fromCharCode(e.charCode) + "\n"
+ + "Codice carattere: " + e.charCode + "\n"
+ + "Tasto ALT premuto: " + e.altKey + "\n"
+ );
+}
+
+&lt;/script&gt;
+&lt;/head&gt;
+
+&lt;body onkeypress="mostraCarattere(event);"&gt;
+&lt;p&gt;
+Prova a premere un tasto tenendo premuto ALT e prova a premere un tasto senza premere ALT.&lt;br /&gt;
+Puoi anche provare a premere ALT+SHIFT.
+&lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+</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-altKey">altKey </a></p>
+<p>{{ languages( { "en": "en/DOM/event.altKey", "pl": "pl/DOM/event.altKey" } ) }}</p>