From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/istanbul-reports/lib/html/assets/block-navigation.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/PAMapp/node_modules/istanbul-reports/lib/html/assets/block-navigation.js b/PAMapp/node_modules/istanbul-reports/lib/html/assets/block-navigation.js
index abed602..d58c460 100644
--- a/PAMapp/node_modules/istanbul-reports/lib/html/assets/block-navigation.js
+++ b/PAMapp/node_modules/istanbul-reports/lib/html/assets/block-navigation.js
@@ -62,6 +62,14 @@
     }
 
     return function jump(event) {
+        if (
+            document.getElementById('fileSearch') === document.activeElement &&
+            document.activeElement != null
+        ) {
+            // if we're currently focused on the search input, we don't want to navigate
+            return;
+        }
+
         switch (event.which) {
             case 78: // n
             case 74: // j

--
Gitblit v1.8.0