html/DOM3-Events.html
changeset 671 26dc3d28bfa0
parent 670 42e65115f7e2
child 672 7d98f8bd1933
equal deleted inserted replaced
670:42e65115f7e2 671:26dc3d28bfa0
  2421 					states. The following dictionary enables authors to initialize keyboard modifier 
  2421 					states. The following dictionary enables authors to initialize keyboard modifier 
  2422 					attributes of the <a href="#interface-MouseEvent"><code>MouseEvent</code></a> and 
  2422 					attributes of the <a href="#interface-MouseEvent"><code>MouseEvent</code></a> and 
  2423 					<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a> interfaces, as well as 
  2423 					<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a> interfaces, as well as 
  2424 					the additional modifier states queried via 
  2424 					the additional modifier states queried via 
  2425 					<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>.</p>
  2425 					<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>.</p>
  2426             
  2426 
  2427           <dl class="idl" title="dictionary SharedKeyboardAndMouseEventInit : UIEventInit">
  2427 				<dl class="idl" title="dictionary SharedKeyboardAndMouseEventInit : UIEventInit">
  2428 
  2428 
  2429 					<dt>boolean ctrlKey = false</dt>
  2429 					<dt>boolean ctrlKey = false</dt>
  2430 					<dd>
  2430 					<dd>
  2431 						<p>Initializes the <code>altKey</code> attribute of the 
  2431 						<p>Initializes the <code>altKey</code> attribute of the 
  2432 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2432 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2433 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2433 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2434 							objects to <code>true</code> if the <code class="key">'Control'</code>
  2434 							objects to <code>true</code> if the <code class="key">'Control'</code>
  2435 							(control) key modifier is to be considered active, 
  2435 							(control) key modifier is to be considered active, 
  2436 							<code>false</code> otherwise.</p>
  2436 							<code>false</code> otherwise.</p>
  2437 						<p>Implementations must also initialize the event object's key modifier
  2437 						<p>When <code>true</code>, implementations must also initialize the event object's key modifier
  2438 							state such that calls to the
  2438 							state such that calls to the
  2439 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2439 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2440 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2440 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2441 							when provided with either the parameter <code class="key">'Control'</code> or
  2441 							when provided with either the parameter <code class="key">'Control'</code> or
  2442 							the parameter <code class="key">'Accel'</code> must return <code>true</code>.</p>
  2442 							the parameter <code class="key">'Accel'</code> must return <code>true</code>.</p>
  2447 						<p>Initializes the <code>shiftKey</code> attribute of the 
  2447 						<p>Initializes the <code>shiftKey</code> attribute of the 
  2448 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2448 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2449 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2449 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2450 							objects to <code>true</code> if the <code class="key">'Shift'</code>
  2450 							objects to <code>true</code> if the <code class="key">'Shift'</code>
  2451 							key modifier is to be considered active, <code>false</code> otherwise.</p>
  2451 							key modifier is to be considered active, <code>false</code> otherwise.</p>
  2452 						<p>Implementations must also initialize the event object's key modifier
  2452 						<p>When <code>true</code>, implementations must also initialize the event object's key modifier
  2453 							state such that calls to the
  2453 							state such that calls to the
  2454 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2454 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2455 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2455 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2456 							when provided with the parameter <code class="key">'Shift'</code> must 
  2456 							when provided with the parameter <code class="key">'Shift'</code> must 
  2457 							return <code>true</code>.</p>
  2457 							return <code>true</code>.</p>
  2463 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2463 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2464 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2464 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2465 							objects to <code>true</code> if the <code class="key">'Alt'</code>
  2465 							objects to <code>true</code> if the <code class="key">'Alt'</code>
  2466 							(alternative) (or <code class="glyph">'Option'</code>) key modifier 
  2466 							(alternative) (or <code class="glyph">'Option'</code>) key modifier 
  2467 							is to be considered active, <code>false</code> otherwise.</p>
  2467 							is to be considered active, <code>false</code> otherwise.</p>
  2468 						<p>Implementations must also initialize the event object's key modifier
  2468 						<p>When <code>true</code>, implementations must also initialize the event object's key modifier
  2469 							state such that calls to the
  2469 							state such that calls to the
  2470 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2470 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2471 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2471 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2472 							when provided with the parameter <code class="key">'Alt'</code> must 
  2472 							when provided with the parameter <code class="key">'Alt'</code> must 
  2473 							return <code>true</code>.</p>
  2473 							return <code>true</code>.</p>
  2478 						<p>Initializes the <code>metaKey</code> attribute of the 
  2478 						<p>Initializes the <code>metaKey</code> attribute of the 
  2479 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2479 							<a href="#interface-MouseEvent"><code>MouseEvent</code></a> or 
  2480 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2480 							<a href="#interface-KeyboardEvent"><code>KeyboardEvent</code></a>
  2481 							objects to <code>true</code> if the <code class="key">'Meta'</code>
  2481 							objects to <code>true</code> if the <code class="key">'Meta'</code>
  2482 							key modifier is to be considered active, <code>false</code> otherwise.</p>
  2482 							key modifier is to be considered active, <code>false</code> otherwise.</p>
  2483 						<p>Implementations must also initialize the event object's key modifier
  2483 						<p>When <code>true</code>, implementations must also initialize the event object's 
  2484 							state such that calls to the
  2484 							key modifier state such that calls to the
  2485 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2485 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2486 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2486 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2487 							when provided with either the parameter <code class="key">'Meta'</code> or
  2487 							when provided with either the parameter <code class="key">'Meta'</code> or
  2488 							the parameter <code class="key">'Accel'</code> must return <code>true</code>.</p>
  2488 							the parameter <code class="key">'Accel'</code> must return <code>true</code>.</p>
  2489 					</dd>
  2489 					</dd>
  2584 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2584 							<a href="#widl-MouseEvent-getModifierState"><code>MouseEvent.getModifierState()</code></a> or 
  2585 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2585 							<a href="#widl-KeyboardEvent-getModifierState"><code>KeyboardEvent.getModifierState()</code></a>
  2586 							when provided with the parameter <code class="key">'SymbolLock'</code> must 
  2586 							when provided with the parameter <code class="key">'SymbolLock'</code> must 
  2587 							return <code>true</code>.</p>
  2587 							return <code>true</code>.</p>
  2588 					</dd>
  2588 					</dd>
  2589           
  2589 			</section> <!-- END dictionary SharedKeyboardAndMouseEventInit defs -->
  2590       </section> <!-- END dictionary SharedKeyboardAndMouseEventInit defs -->
  2590 
  2591         
       
  2592 			<section id="events-mouseevent-event-order">
  2591 			<section id="events-mouseevent-event-order">
  2593 				<h4>Mouse Event Order</h4>
  2592 				<h4>Mouse Event Order</h4>
  2594 
  2593 
  2595 				<p>Certain mouse events defined in this specification MUST occur in a set order relative to one another.
  2594 				<p>Certain mouse events defined in this specification MUST occur in a set order relative to one another.
  2596 					The following shows the event sequence that MUST occur when a pointing
  2595 					The following shows the event sequence that MUST occur when a pointing