diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-01-22 15:21:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 15:21:31 +0100 |
commit | fef15ea9d13d27225967d19944e0e3f9e45f9723 (patch) | |
tree | cc1730fc31ce9b91ff958a92b89e8649b9e6c490 /js | |
parent | baac3413ed2ede52359edcf03d14279bfa5d8ec7 (diff) | |
parent | 65584ff3a9ecde118f8b33c94c3e5c3ee4345c3f (diff) | |
download | perl-software-in-gnu-guix-fef15ea9d13d27225967d19944e0e3f9e45f9723.tar perl-software-in-gnu-guix-fef15ea9d13d27225967d19944e0e3f9e45f9723.tar.gz |
Merge pull request #2307 from reyerstudio/feature/shortcuts@dev
Enable simpleNavigation
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 88ce029..07a86e5 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -108,6 +108,9 @@ // Change the presentation direction to be RTL rtl: false, + // When this is enabled, stepping only with previous and next slide. + simpleNavigation: false, + // When this is enabled, stepping left/right from a vertical stack // to an adjacent vertical stack will land you at the same vertical // index. @@ -5011,13 +5014,13 @@ // n, page down case 78: case 34: navigateNext(); break; // h, left - case 72: case 37: firstSlideShortcut ? slide( 0 ) : navigateLeft(); break; + case 72: case 37: firstSlideShortcut ? slide( 0 ) : isOverview() || !config.simpleNavigation ? navigateLeft() : navigatePrev(); break; // l, right - case 76: case 39: lastSlideShortcut ? slide( Number.MAX_VALUE ) : navigateRight(); break; + case 76: case 39: lastSlideShortcut ? slide( Number.MAX_VALUE ) : isOverview() || !config.simpleNavigation ? navigateRight() : navigateNext(); break; // k, up - case 75: case 38: navigateUp(); break; + case 75: case 38: isOverview() || !config.simpleNavigation ? navigateUp() : navigatePrev(); break; // j, down - case 74: case 40: navigateDown(); break; + case 74: case 40: isOverview() || !config.simpleNavigation ? navigateDown() : navigateNext(); break; // home case 36: slide( 0 ); break; // end |