Track enter key hit in a ssrs 2019 report by edge extension

Pandabay 6 Reputation points
2022-11-01T14:56:59.17+00:00

I want to react with an edge extension having a SSRS 2019 report opened in the browser and you are inside an input field and hit enter.

content.js

window.addEventListener('keydown',(event)=>{
chrome.runtime.sendMessage(null,(response)=>{
alert("keydown event");
})
})

Background.js

chrome.runtime.onMessage.addListener((message,sender,sendResponse)=>{
sendResponse("I have received the message!")
})

But as soon as I clicked into the input it won't react at all.
I have just one text and one date input in the report.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,066 questions
Microsoft Edge | Microsoft Edge development
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.