Surfingkeys icon indicating copy to clipboard operation
Surfingkeys copied to clipboard

Input element loses focus after the first click on it

Open jaekyeom opened this issue 4 years ago • 2 comments

Error details

SurfingKeys: 0.9.65

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36

URL: https://www.english-corpora.org/now/

Context

When the web page loads, you need to click the search input element twice to give the focus to it with the mouse.

I'm aware of #1147, but I'm using version 0.9.65 and experiencing this issue.

Thank you.

jaekyeom avatar Aug 09 '20 23:08 jaekyeom

The call stack is

_initContent
getFrameId
"click" listener

The weird thing is that runtime.conf.stealFocusOnLoad is true no matter I set settings.stealFocusOnLoad = false in the options page or not. Maybe it's because it was before the settings are loaded?

jaekyeom avatar Sep 02 '20 13:09 jaekyeom

hey, thanks for the tip about stealFocusOnLoad, I was going nuts trying to understand why my inputs won't focus... for me it solves the problem...

however it's way too greedy, it's not just "steal on load"... it's steal until there's a click or something like that. Which makes life a bit hard.

Madd0g avatar Jan 22 '22 21:01 Madd0g