Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts
diff options
context:
space:
mode:
Commitac3e159482d8e116b42c8d81e025703a4e5030c5 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-04-24 14:39:59 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-04-24 14:39:59 +0300
Filescfa9643ed040a6e23915e115f5f590289e30cc64 /src/scripts
syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.tar
syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.tar.gz
syndamia.com-ac3e159482d8e116b42c8d81e025703a4e5030c5.zip
Parent7351d297dba7f16b7517ca05e3ea6bfc096c4fca (diff)
[presentation] Added hjkl navigation for slides
1 files changed, 2 insertions, 0 deletions
-rw-r--r--src/scripts/presentation.js2
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;