diff options
| Commit | ac3e159482d8e116b42c8d81e025703a4e5030c5 (patch) | |
|---|---|---|
| Author | 2023-04-24 14:39:59 +0300 | |
| Committer | 2023-04-24 14:39:59 +0300 | |
| Files | cfa9643ed040a6e23915e115f5f590289e30cc64 | |
| syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.tar syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.tar.gz syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.zip | ||
| Parent | 7351d297dba7f16b7517ca05e3ea6bfc096c4fca (diff) | |
[presentation] Added hjkl navigation for slides
2 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | awk-edits/Presentation.awk | 2 | ||||
| -rw-r--r-- | src/scripts/presentation.js | 2 |
diff --git a/awk-edits/Presentation.awk b/awk-edits/Presentation.awk index eb923ad..a165bc6 100644 --- a/awk-edits/Presentation.awk +++ b/awk-edits/Presentation.awk @@ -161,7 +161,7 @@ BEGIN { " <img id=\"presentBtn\" class=\"unzoomable btn setting-btn icon\" src=\"/img/presentation.svg\" alt=\"Present\">" ORS \ " <img id=\"printBtn\" class=\"unzoomable btn setting-btn icon\" src=\"/img/printer.svg\" alt=\"Print\">" ORS \ " </nav><br><br>" ORS \ -" <script type=\"text/javascript\" src=\"/scripts/presentation.js\" integrity=\"sha512-PoIbgOwiicYREcbrrt+nQUZV+/goInUOpP3f7I7H6Rba7Ww6CkTbM7MRQnMnQn1yvJVdcLNXE5LsYMjT6+HEZA==\" crossorigin=\"anonymous\"></script>" +" <script type=\"text/javascript\" src=\"/scripts/presentation.js\" integrity=\"sha512-ZxV9z0W+zUL1SDsojpvUy/IbvXiz2mLUdnTghCkT0Ws5Hi+CE2KbrROnKkhIK4DQP85dAF41Lms4GrAYcNaQrA==\" crossorigin=\"anonymous\"></script>" for (i = 1; i <= length(names); i++) { pat[i] = "&&" names[i] diff --git a/src/scripts/presentation.js b/src/scripts/presentation.js index df80183..70339e6 100644 --- a/src/scripts/presentation.js +++ b/src/scripts/presentation.js @@ -111,11 +111,13 @@ document.addEventListener('keydown', function (e) { switch (e.code) { // Previous slide case 'Backspace': case 'PageUp': + case 'KeyK': case 'KeyH': case 'ArrowLeft': case 'ArrowUp': showSlide(-1); break; // Next slide case 'Space': case 'Enter': case 'PageDown': + case 'KeyJ': case 'KeyL': case 'ArrowRight': case 'ArrowDown': showSlide(+1); break; |