aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/-moz-user-focus/index.html
blob: 2c3e77a9dac141c3d35d21a1c821a54e641d5a81 (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
114
115
116
117
---
title: '-moz-user-focus'
slug: Web/CSS/-moz-user-focus
tags:
  - CSS
  - CSS Referenz
  - 'CSS:Mozilla Erweiterungen'
  - NeedsBrowserCompatibility
  - NeedsContent
  - NeedsExample
  - NeedsMobileBrowserCompatibility
translation_of: Web/CSS/-moz-user-focus
---
<div>{{Non-standard_header}}</div>

<h2 id="Übersicht">Übersicht</h2>

<p>Die <code>-moz-user-focus</code> <a href="/de/docs/Web/CSS">CSS</a> Eigenschaft wird dazu benutzt, anzugeben, ob das Element den Fokus haben kann.</p>

<p>Durch Setzen ihres Wertes auf <code>ignore</code> kann die Fokussierung des Elements deaktiviert werden, was bedeutet, dass der Benutzer das Element nicht aktivieren kann. Das Element wird in der Tabsequenz ausgelassen.</p>

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

<div class="note"><strong>Hinweis:</strong> Diese Eigenschaft funktioniert nicht bei XUL {{XULElem("textbox")}} Elementen, weil die <code>textbox</code> selbst nie fokussiert werden kann. Stattdessen erzeugt XBL ein anonymes HTML {{HTMLElement("input")}} Element innerhalb der <code>textbox</code> und dieses Element ist dasjenige, das den Fokus erhält. Die <code>textbox</code> kann auch daran gehindert werden, den Tastaturfokus zu erhalten, indem sein Tabindex auf <code>-1</code> gesetzt wird und daran, den Mausfokus zu erhalten, indem die Standardaktion des <code>mousedown</code> Ereignisses verhindert wird.</div>

<h2 id="Syntax">Syntax</h2>

<pre class="brush:css">/* Schlüsselwortwerte */
-moz-user-focus: normal;
-moz-user-focus: ignore;

/* Globale Werte */
-moz-user-focus: inherit;
-moz-user-focus: initial;
-moz-user-focus: unset;
</pre>

<h3 id="Werte">Werte</h3>

<dl>
 <dt><code>ignore</code></dt>
 <dd>Das Element akzeptiert den Tastaturfokus nicht und wird in der Tabreihenfolge ausgelassen.</dd>
 <dt><code>normal</code></dt>
 <dd>Das Element kann den Tastaturfokus akzeptieren.</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="Formale_Syntax">Formale Syntax</h3>

<pre class="syntaxbox">{{csssyntax}}</pre>

<h2 id="Spezifikationen">Spezifikationen</h2>

<p>Diese Eigenschaft ist nicht Teil einer Spezifikation. Eine ähnliche Eigenschaft <code>user-focus</code> wurde in <a class="external" href="http://www.w3.org/TR/2000/WD-css3-userint-20000216">frühen Entwürfen eines Vorläufers der CSS3 UI Spezifikation</a> vorgeschlagen, jedoch von der Arbeitsgruppe abgelehnt.</p>

<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>

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

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Merkmal</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Grundlegende Unterstützung</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>Merkmal</th>
   <th>Android</th>
   <th>Chrome für Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Grundlegende Unterstützung</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>