Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 9 insertions, 2 deletions
-rw-r--r--src/index.md2
-rw-r--r--src/scripts/keyboard.js9
diff --git a/src/index.md b/src/index.md
index 6d99115..117f509 100644
--- a/src/index.md
+++ b/src/index.md
@@ -27,6 +27,8 @@ Have a look around and enjoy your stay!
|Key|Available|Action|
|---|---------|------|
|C |Everywhere|Toggles the theme between light and dark|
+|W |Everywhere|Toggles the page width|
+|E |Everywhere|Expands/shrinks the sidebar|
|K, Backspace, PageUp, Left arrow, Up arrow|Presentations|Go to previous slide|
|J, Spacebar, Enter key, PageDown, Right arrow, Down arrow|Presentations|Go to next slide|
|P, T|Presentations|Start or stop (toggle) presenting|
diff --git a/src/scripts/keyboard.js b/src/scripts/keyboard.js
index bacbea1..1de93cf 100644
--- a/src/scripts/keyboard.js
+++ b/src/scripts/keyboard.js
@@ -2,11 +2,16 @@ document.addEventListener('keydown', function (e) {
if (e.ctrlKey) return;
switch (e.code) {
- /* theme-changer.js */
- case 'KeyC':
+ case 'KeyC': // theme-changer.js
themeBtn.click();
break;
+ case 'KeyW': // page-width.js
+ widthBtn.click();
+ break;
+ case 'KeyE': // expand-navbar.js
+ expandBtn.click();
+ break;
/* presentation.js */