118 lines
2.9 KiB
XML
118 lines
2.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<xlib_symbol id='xEvent'>
|
|
|
|
<copyright>Copyright 2001-2005 Michael Foster (Cross-Browser.com)</copyright>
|
|
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
|
|
<groups>
|
|
<grp>Event</grp>
|
|
</groups>
|
|
<type>Object</type>
|
|
|
|
<description><![CDATA[Resolve browser differences for event properties. This is an object prototype. Create an instance with the 'new' operator.]]></description>
|
|
|
|
<syntax>new xEvent(oEvent)</syntax>
|
|
|
|
<parameters>
|
|
<par>
|
|
<name>oEvent</name>
|
|
<note><![CDATA[the native event object passed to your event listener]]></note>
|
|
</par>
|
|
</parameters>
|
|
|
|
<properties>
|
|
<prop>
|
|
<name>type</name>
|
|
<note><![CDATA[string, event type]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>target</name>
|
|
<note><![CDATA[element object, target of event]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>pageX</name>
|
|
<note><![CDATA[absolute X coordinate of mouse]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>pageY</name>
|
|
<note><![CDATA[absolute Y coordinate of mouse]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>offsetX</name>
|
|
<note><![CDATA[target-relative X coordinate of mouse]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>offsetY</name>
|
|
<note><![CDATA[target-relative Y coordinate of mouse]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>keyCode</name>
|
|
<note><![CDATA[unsigned integer]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>shiftKey</name>
|
|
<note><![CDATA[boolean]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>ctrlKey</name>
|
|
<note><![CDATA[boolean]]></note>
|
|
</prop>
|
|
<prop>
|
|
<name>altKey</name>
|
|
<note><![CDATA[boolean]]></note>
|
|
</prop>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dep>xDef</dep>
|
|
<dep>xScrollLeft</dep>
|
|
<dep>xScrollTop</dep>
|
|
<dep>xPageX</dep>
|
|
<dep>xPageY</dep>
|
|
<dep>nn4:xLayerFromPoint</dep>
|
|
</dependencies>
|
|
|
|
<demos>
|
|
<demo>
|
|
<url>http://cross-browser.com/toys/</url>
|
|
<note><![CDATA[xEvent is used in many of the demos.]]></note>
|
|
</demo>
|
|
</demos>
|
|
|
|
<comments>
|
|
<comment>
|
|
<date>2002</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[I always thought I should have made this a function instead of an object prototype ;-)]]></note>
|
|
</comment>
|
|
</comments>
|
|
|
|
<revisions>
|
|
<rev>
|
|
<num>4</num>
|
|
<date>2May05</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[Removed one sniffer (xIE4Up). Thanks very much to Hallvord (hallvord.com).]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>3</num>
|
|
<date>25Apr05</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[use xOp6Dn instead of xOp5or6.]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>2</num>
|
|
<date>24Mar05</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[Added shiftKey, ctrlKey and altKey.]]></note>
|
|
</rev>
|
|
<rev>
|
|
<num>1</num>
|
|
<date>31Mar04</date>
|
|
<author>mf</author>
|
|
<note><![CDATA[put in it's own file for use with XC]]></note>
|
|
</rev>
|
|
</revisions>
|
|
|
|
</xlib_symbol>
|