This component handles navigation with the keyboard. It also offers a binding mechanism for other components, plugins and the user.
Example:
$(selector).jmpress({
keyboard: {
keys: {
189: ['select', '#overview']
}
}
});
In this example we are binding the '-' key (key code 189) to select a step we have named 'overview'.
Bind a key to a jmpress command. Set it to null to remove an existing key binding.
Set it to a string to get the jmpress command invoked.
Set it to a string containing ":" (ex. "next:prev") to get the first command on default and the second on modified with the shift key.
Set it to a array to apply the array as arguments a jmpress command (ex. ["select", "#some-cool-step"]).
Ignore some keys on a specific tag name.
Whether the keyboard should be used to navigate in jmpress.