Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts
diff options
context:
space:
mode:
Commit3042828975df7cce9a5419d9b1d58a3d11dc142d (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-08-10 15:36:07 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-08-10 15:36:07 +0300
Filese3c092b796353d585a6720d219be3e3459b518b6 /src/scripts
syndamia.com-3042828975df7cce9a5419d9b1d58a3d11dc142d.tar
syndamia.com-3042828975df7cce9a5419d9b1d58a3d11dc142d.tar.gz
syndamia.com-3042828975df7cce9a5419d9b1d58a3d11dc142d.zip
Parente80e02cb52f4d7d67b257a5f72e7fbe28c5b74f9 (diff)
feat(keyboard.js): Added width and expand toggle key shortcuts
1 files changed, 7 insertions, 2 deletions
-rw-r--r--src/scripts/keyboard.js9
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 */