diff options
[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.js | 12 |
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; - } -}); |