From e073c09a5ed26e61b34a44419f85a939781b1409 Mon Sep 17 00:00:00 2001 From: Heather Kusmierz Date: Mon, 13 Feb 2023 16:26:55 -0500 Subject: [PATCH] fix: MOP ignore keypress if input is focused --- check_run/public/js/check_run/check_run.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check_run/public/js/check_run/check_run.js b/check_run/public/js/check_run/check_run.js index bc80912e..eae72275 100644 --- a/check_run/public/js/check_run/check_run.js +++ b/check_run/public/js/check_run/check_run.js @@ -44,10 +44,15 @@ check_run.mount_table = frm => { } check_run.keyDownHandler = e => { + if(!check_run.frm) { return } + if(document.activeElement.tagName == "INPUT" || document.activeElement.tagName == "TEXTAREA") { + return + } + if(e.keyCode == 40 && check_run.frm.check_run_state.selectedRow < (check_run.frm.check_run_state.transactions.length - 1)){ for(let j=0;j