Keyboard Navigation
From MegaZine3
| Name | Keyboardnavigation |
|---|---|
| Files |
|
The Keyboardnavigation plugin enables keyboard interaction to browse through the book. Four actions can be triggered: next page, previous page, first page and last page. The keys used can be configured using the constants of the Flash ActionScript 3.0 class Keyboard.
Important: for actual definition in the XML use the numeric value of the key to use. For example, to assign the enter key to next page, use keynextpage="13".
Note: some keys may not work in full-screen mode.
Contents |
[edit] Settings
This plugin uses or defines the following settings.
keyprevpage
- Type: Integer
- Default:
see description
Navigates to the previous page in the book.
The default depends on the setting of book@ltr.
- if
true, it's37(Keyboard.LEFT, left arrow key) - if
false, it's39(Keyboard.RIGHT, right arrow key)
keynextpage
- Type: Integer
- Default:
see description
Navigates to the next page in the book.
The default depends on the setting of book@ltr.
- if
true, it's39(Keyboard.RIGHT, right arrow key) - if
false, it's37(Keyboard.LEFT, left arrow key)
keyfirstpage
- Type: Integer
- Default:
36 (Keyboard.HOME, home key)
Navigates to the first page in the book.
keylastpage
- Type: Integer
- Default:
35 (Keyboard.END, end key)
Navigates to the last page in the book.
[edit] Attributes
This plugin handles no attributes.
[edit] Examples
<book plugins="keyboardnavigation" keynextpage="13"> <!-- ... --> </book>
| MegaZine3 Plugin-related articles | |
|---|---|
| Plugins | Anchors · Background Sounds · Batchpages · Bookmarks · Console · ElementIDs · Gallery · Google Analytics · Help · JavaScript · Keyboard Navigation · Links · NavigationBar · Options · Overlays · Password · PDFLinks · Print · PrintPDF · SWFAddress· Search · Sidebar · Slideshow · Titles |
| Plugin Articles | Writing a plugin · Writing a plugin II · Plugin development |
