diff options
author | MDN <actions@users.noreply.github.com> | 2021-09-09 00:49:39 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-09-09 00:49:39 +0000 |
commit | fdc77da2ba02ff78b23fc129ec7ee20c0fa28afb (patch) | |
tree | c194112508d253c64aebf8273cb8566fceaf8697 /files/es/web/api/keyboardevent/which/index.html | |
parent | d6e1ef64cdf9b8592a58a30725c208753729b08a (diff) | |
download | translated-content-fdc77da2ba02ff78b23fc129ec7ee20c0fa28afb.tar.gz translated-content-fdc77da2ba02ff78b23fc129ec7ee20c0fa28afb.tar.bz2 translated-content-fdc77da2ba02ff78b23fc129ec7ee20c0fa28afb.zip |
[CRON] sync translated content
Diffstat (limited to 'files/es/web/api/keyboardevent/which/index.html')
-rw-r--r-- | files/es/web/api/keyboardevent/which/index.html | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/files/es/web/api/keyboardevent/which/index.html b/files/es/web/api/keyboardevent/which/index.html deleted file mode 100644 index 11e1e3e48e..0000000000 --- a/files/es/web/api/keyboardevent/which/index.html +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: event.which -slug: Web/API/KeyboardEvent/which -tags: - - DOM - - events - - metodo - - which -translation_of: Web/API/KeyboardEvent/which ---- -<p>{{ ApiRef() }}</p> -<h3 id="Summary" name="Summary">Resumen</h3> -<p>Devuelve el <code>keyCode</code> de la tecla presionada, o el codigo del caracter (<code>charCode</code>) de la tecla alfanumerica presionada.</p> -<h3 id="Syntax" name="Syntax">Sintaxis</h3> -<pre class="eval"><em>var keyResult</em> = event.which; -</pre> -<p><code>keyResult</code> contiene el codigo numerico para una tecla en particular, dependiendo si la tecla presionada es alfanumerica o no-alfanumerica. Por favor mire <code><a href="/en/DOM/event.charCode" title="en/DOM/event.charCode">charCode</a></code> y <code><a href="/en/DOM/event.keyCode" title="en/DOM/event.keyCode">keyCode</a></code> para mas informacion.</p> -<h3 id="Example" name="Example">Ejemplo</h3> -<pre><html> -<head> -<title>charCode/keyCode/which example</title> - -<script type="text/javascript"> - -function showKeyPress(evt) -{ -alert("onkeypress handler: \n" - + "keyCode property: " + evt.keyCode + "\n" - + "which property: " + evt.which + "\n" - + "charCode property: " + evt.charCode + "\n" - + "Character Key Pressed: " - + String.fromCharCode(evt.charCode) + "\n" - ); -} - - -function keyDown(evt) -{ -alert("onkeydown handler: \n" - + "keyCode property: " + evt.keyCode + "\n" - + "which property: " + evt.which + "\n" - ); -} - - -</script> -</head> - -<body - onkeypress="showKeyPress(event);" - onkeydown="keyDown(event);" -> - -<p>Por favor presione cualquier tecla.</p> - -</body> -</html> -</pre> -<div class="note"> - <strong>Nota:</strong> El codigo de arriba falla en Firefox 9 debido al <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=696020" title="onkeypress attribute on body no longer gets events happening on the window">bug 696020</a>.</div> -<h3 id="Specification" name="Specification">Especificacion</h3> -<p>No es parte de ninguna especificacion.</p> |