Author: artdaw
Date: 2008-06-28 10:53:08 -0400 (Sat, 28 Jun 2008)
New Revision: 9290
Modified:
trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-28 13:10:56 UTC
(rev 9289)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-28 14:53:08 UTC
(rev 9290)
@@ -64,8 +64,54 @@
<section>
<title>Details of Usage</title>
<para>
-
+ There are two ways to register <emphasis
role="bold"><property><rich:hotKey></property></emphasis>:
</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ by attaching it to the whole page (<property>html[0]
element</property>). This is default scenario.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ by attaching it with
<emphasis><property>"selector"</property></emphasis>
attribute to all the elements
+ defined using this selector.
+ This attribute uses defined by <ulink
url="http://www.w3.org">w3c consortium</ulink> syntax for CSS rule
selector
+ with some jQuery extensions.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The
<emphasis><property>"key"</property></emphasis>
attribute defines the hot key itself
+ which is processed by the component.
+ </para>
+ <para>
+ After the hot key has been registered and defined you could set the
<emphasis><property>"handler"</property></emphasis>
+ attribute which determines a JavaScript function to be called every time when
corresponding keys are pressed.
+ </para>
+
+ <para>
+ With the help of the
<emphasis><property>"timing"</property></emphasis>
attribute
+ you could manage <emphasis
role="bold"><property><rich:hotKey></property></emphasis>
registration timing.
+ There are three possible values of this attribute:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ "immediate" - the component is rendered in browser
immediately
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ "onload" - the component is rendered after the page
is fully loaded
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ "onregistercall" - the component is rendered only
after JavaScript API for the key registration is used.
+ </para>
+ </listitem>
+ </itemizedlist>
</section>
<section>
<title>JavaScript API</title>