aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/css/-moz-user-focus/index.html
blob: dc938a2aa1d78b25b0ff7b4186d7247ccb796e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
title: '-moz-user-focus'
slug: Web/CSS/-moz-user-focus
tags:
  - CSS
  - 'CSS:Extensiones Mozilla'
  - Referencia CSS
translation_of: Web/CSS/-moz-user-focus
---
<div>{{Non-standard_header}}</div>

<h2 id="Resumen">Resumen</h2>

<p>La propiedad <a href="/es/docs/Web/CSS">CSS </a><code>-moz-user-focus</code>se usa para indicar si el elemento puedo obtener el foco.</p>

<p>Al poner el valor de esta propiedad a <code>ignore</code>, deshabilitas el hecho de que el elemento pueda obtener el foco lo que significa que el usuario no podrá activar el elemento. Se saltará el elemento es un secuncia de tabuladores.</p>

<p>{{cssinfo}}</p>

<div class="note"><strong>Nota:</strong> Esta propiedad no funciona con los elementos XUL {{XULElem("textbox")}} , porque el <code>textbox</code> en sí mismo nunca tomará el foco. En su lugar , XBL crea un elemento HTML  {{HTMLElement("input")}} anónimo dentro del <code>textbox</code>, y es ese elemento el que recibe el foco. Se puede evitar que el <code>textbox</code> obtenga el foco de teclado estableciendo su índice de tabulación a <code>-1</code>, y que obtenga el foco del ratón evitando la acción por defecto para los eventos <code>mousedown</code>.</div>

<h2 id="Síntaxis">Síntaxis</h2>

<pre class="brush:css">/* Palabras clave de valores */
-moz-user-focus: normal;
-moz-user-focus: ignore;

/* Valores gloables */
-moz-user-focus: inherit;
-moz-user-focus: initial;
-moz-user-focus: unset;
</pre>

<h3 id="Valores">Valores</h3>

<dl>
 <dt><code>ignore</code></dt>
 <dd>El elemento no aceptará el foco y será saltado en el orden de tabulación.</dd>
 <dt><code>normal</code></dt>
 <dd>El elemento puedeo aceptar el foco del teclado.</dd>
 <dt><code>select-after</code></dt>
 <dd>?</dd>
 <dt><code>select-before</code></dt>
 <dd>?</dd>
 <dt><code>select-menu</code></dt>
 <dd>?</dd>
 <dt><code>select-same</code></dt>
 <dd>?</dd>
 <dt><code>select-all</code></dt>
 <dd>?</dd>
 <dt><code>none</code></dt>
 <dd>?</dd>
</dl>

<h3 id="Síntaxis_Formal">Síntaxis Formal</h3>

{{csssyntax}}

<h2 id="Especificaciones">Especificaciones</h2>

<p>Esta propiedad no es parte de ninguna especificación. Una propiedad similar <code>user-focus</code> fue propuesta en <a class="external" href="http://www.w3.org/TR/2000/WD-css3-userint-20000216">borradores previos de la especificación CSS 3 UI</a> pero finalmente fué rechazada por el grupo de trabajo.</p>

<h2 id="Compatibilidad_con_los_distintos_navegadores">Compatibilidad con los distintos navegadores</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Soporte básico</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Android</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Soporte básico</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>