I am making a sort of overlay which has a text input, but certain websites--like this one and Bing's homepage--steal the focus of the text input as soon as I start typing in it. I tried resetting the focus when it is changed, but the text still types into whatever is stealing the focus.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/10f4d188-2407-42d9-84a7-0fa6910bfcd1%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
event.preventDefault();event.stopPropagation();return false;Maybe try calling preventDefault() on the blur or focusout event?(I guess they listen to keydown and then steal the focus, so in order not to annoy or lock the user, check whether keydown was not for pressing Tab first and then preventDefault() the blur/focusout event)☆PhistucK
On Sat, May 5, 2018 at 6:31 PM Kyza <tyler...@gmail.com> wrote:
I am making a sort of overlay which has a text input, but certain websites--like this one and Bing's homepage--steal the focus of the text input as soon as I start typing in it. I tried resetting the focus when it is changed, but the text still types into whatever is stealing the focus.--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
"None of the above seem to work"
How does that justify this as complete?
On Saturday, May 5, 2018 at 12:04:43 PM UTC-4, Kyza wrote:
I have tried the following in both the blur and focus out events.event.preventDefault();event.stopPropagation();return false;
None of the above seem to work, the focus only returns if I call .focus() on the input. There are 2 problems with that:
- I have the text input highlight itself on focus for ease of use, so every character it refocuses and deletes what was in it.
- It is incredibly slow. And I am on a moderately fast computer as well.
On Saturday, May 5, 2018 at 11:42:26 AM UTC-4, PhistucK wrote:
Maybe try calling preventDefault() on the blur or focusout event?(I guess they listen to keydown and then steal the focus, so in order not to annoy or lock the user, check whether keydown was not for pressing Tab first and then preventDefault() the blur/focusout event)☆PhistucK
On Sat, May 5, 2018 at 6:31 PM Kyza <tyler...@gmail.com> wrote:
I am making a sort of overlay which has a text input, but certain websites--like this one and Bing's homepage--steal the focus of the text input as soon as I start typing in it. I tried resetting the focus when it is changed, but the text still types into whatever is stealing the focus.--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/10f4d188-2407-42d9-84a7-0fa6910bfcd1%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/56bb0cf6-2fc4-4072-87dd-18c0aebda211%40chromium.org.
Do not mind this "mark as complete" or "marked complete"... I guess anyone can click on it.☆PhistucK
On Sat, May 5, 2018 at 8:47 PM Kyza <tyler...@gmail.com> wrote:
"None of the above seem to work"
How does that justify this as complete?
On Saturday, May 5, 2018 at 12:04:43 PM UTC-4, Kyza wrote:
I have tried the following in both the blur and focus out events.event.preventDefault();event.stopPropagation();return false;
None of the above seem to work, the focus only returns if I call .focus() on the input. There are 2 problems with that:
- I have the text input highlight itself on focus for ease of use, so every character it refocuses and deletes what was in it.
- It is incredibly slow. And I am on a moderately fast computer as well.
On Saturday, May 5, 2018 at 11:42:26 AM UTC-4, PhistucK wrote:
Maybe try calling preventDefault() on the blur or focusout event?(I guess they listen to keydown and then steal the focus, so in order not to annoy or lock the user, check whether keydown was not for pressing Tab first and then preventDefault() the blur/focusout event)☆PhistucK
On Sat, May 5, 2018 at 6:31 PM Kyza <tyler...@gmail.com> wrote:
I am making a sort of overlay which has a text input, but certain websites--like this one and Bing's homepage--steal the focus of the text input as soon as I start typing in it. I tried resetting the focus when it is changed, but the text still types into whatever is stealing the focus.--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/10f4d188-2407-42d9-84a7-0fa6910bfcd1%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
At this rate, I'll never get an answer--let alone a suggestion--since everyone passes this by because they think it is actually complete.
On Saturday, May 5, 2018 at 1:50:12 PM UTC-4, PhistucK wrote:
Do not mind this "mark as complete" or "marked complete"... I guess anyone can click on it.☆PhistucK
On Sat, May 5, 2018 at 8:47 PM Kyza <tyler...@gmail.com> wrote:
"None of the above seem to work"
How does that justify this as complete?
On Saturday, May 5, 2018 at 12:04:43 PM UTC-4, Kyza wrote:
I have tried the following in both the blur and focus out events.event.preventDefault();event.stopPropagation();return false;
None of the above seem to work, the focus only returns if I call .focus() on the input. There are 2 problems with that:
- I have the text input highlight itself on focus for ease of use, so every character it refocuses and deletes what was in it.
- It is incredibly slow. And I am on a moderately fast computer as well.
On Saturday, May 5, 2018 at 11:42:26 AM UTC-4, PhistucK wrote:
Maybe try calling preventDefault() on the blur or focusout event?(I guess they listen to keydown and then steal the focus, so in order not to annoy or lock the user, check whether keydown was not for pressing Tab first and then preventDefault() the blur/focusout event)☆PhistucK
On Sat, May 5, 2018 at 6:31 PM Kyza <tyler...@gmail.com> wrote:
I am making a sort of overlay which has a text input, but certain websites--like this one and Bing's homepage--steal the focus of the text input as soon as I start typing in it. I tried resetting the focus when it is changed, but the text still types into whatever is stealing the focus.--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/10f4d188-2407-42d9-84a7-0fa6910bfcd1%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/56bb0cf6-2fc4-4072-87dd-18c0aebda211%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/ea317f20-6c74-48e7-bf5c-9411ab7b69ac%40chromium.org.