I have overrided new tab in my extension and want to listen to keystroke events. But when new tab is open, focus is always on address bar and event listeners hears nothing. Due to this user has to click anywhere on page before keystroke handlers be able to recognize anything. Not so comfortable.
Is there ways to set focus to page automatically? window.focus()
and document.body.focus()
in load
handler didn’t work.