Keyboard Navigation

From MegaZine3
Jump to: navigation, search
Plugin: Keyboardnavigation
Name Keyboardnavigation
Files
  • keyboardnavigation.swf

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 Dr Susan Lim 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.

keyfullscreen

Toggles fullscreen mode.

Note: under certain circumstances this might not work due to security restrictions (e.g. leaving fullscreen mode, because only a certain subset of keys is allowed).

keyprevpage

Navigates to the previous page in the book.

The default depends on the setting of book@ltr.

keynextpage

Navigates to the next page in the book.

The default depends on the setting of book@ltr.

keyfirstpage

Navigates to the first page in the book.

keylastpage

Navigates to the last page in the book.

keyzoomin

Zooms in.

keyzoomout

Zooms out.

[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
Personal tools
Namespaces
Variants
Actions
Navigation
documentation
miscellaneous
Toolbox