« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/client/scripted-link.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/client/scripted-link.js')
-rw-r--r--src/static/js/client/scripted-link.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/js/client/scripted-link.js b/src/static/js/client/scripted-link.js
index ca1c2548..8b8d8a13 100644
--- a/src/static/js/client/scripted-link.js
+++ b/src/static/js/client/scripted-link.js
@@ -208,6 +208,11 @@ function mutateNavigationLinkContent() {
 
 function addNavigationKeyPressListeners() {
   document.addEventListener('keypress', (event) => {
+    const {tagName} = document.activeElement ?? {};
+    if (tagName === 'INPUT' || tagName === 'TEXTAREA') {
+      return;
+    }
+
     if (event.shiftKey) {
       if (event.charCode === 'N'.charCodeAt(0)) {
         info.nextNavLink?.click();