bespoke-nav-kbd
v1.0.3
Published
Adds keyboard (kbd) navigation to a Bespoke.js presentation.
Downloads
10
Readme
bespoke-nav-kbd
Adds keyboard (kbd) navigation to a Bespoke.js presentation.
Usage
This plugin is shipped in a UMD format, meaning it is available as a CommonJS/AMD module or as a browser global.
For example, when using CommonJS modules:
var bespoke = require('bespoke'),
navkbd = require('bespoke-nav-kbd');
bespoke.from('.deck', [
navkbd()
]);
When using browser globals:
bespoke.from('.deck', [
bespoke.plugins.navkbd()
]);
For more information about options and how the plugin works, see the complete README.
Credits
This plugin is a fork of the official bespoke-keys plugin by Mark Dalgleish. This fork adds additional key bindings, does not capture events if a modifier key is pressed (except Shift + Space), has working tests, provides a cleanup routine and is more clearly named.