Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / theme-changer.js
diff options
context:
space:
mode:
Commit25a63dd10cc09f18a8aa07cee74e6591a0c0381f (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-04-28 17:32:45 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-04-28 17:32:45 +0300
Files67291ec4ec706a0230762b78bd5d5561d9adf7e9 /src/scripts/theme-changer.js
syndamia.com-25a63dd10cc09f18a8aa07cee74e6591a0c0381f.tar
syndamia.com-25a63dd10cc09f18a8aa07cee74e6591a0c0381f.tar.gz
syndamia.com-25a63dd10cc09f18a8aa07cee74e6591a0c0381f.zip
Parentc6569f29f38627d553531f85cf5ea71cae23f897 (diff)
[keyboard.js] Moved all keybindings to a separate javascript file and implemented vim-like navigation for headings
1 files changed, 0 insertions, 12 deletions
-rw-r--r--src/scripts/theme-changer.js12
diff --git a/src/scripts/theme-changer.js b/src/scripts/theme-changer.js
index 47c5dfe..39eedc9 100644
--- a/src/scripts/theme-changer.js
+++ b/src/scripts/theme-changer.js
@@ -17,15 +17,3 @@ themeBtn.onclick = function() {
localStorage.setItem('theme', 'dark');
}
}
-
-/* Keyboard controls */
-
-document.addEventListener('keydown', function (e) {
- if (e.ctrlKey) return;
-
- switch (e.code) {
- case 'KeyC':
- themeBtn.click();
- break;
- }
-});