Important Notice: We're experiencing email notification issues. If you've posted a question in the community forums recently, please check your profile manually for responses while we're working to fix this.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

"Search as you type" conflicts with addEventListener

  • 7 respostas
  • 1 tem este problema
  • 2 visualizações
  • Última resposta de 10basetom

more options

When I enable the "Search for text when you start typing" option in Firefox Quantum (v59.0.1 64-bit), document.addEventListener('keyup', handler) does NOT work on web pages. I think this feature is conflicting with JavaScript events.

When I enable the "Search for text when you start typing" option in Firefox Quantum (v59.0.1 64-bit), document.addEventListener('keyup', handler) does NOT work on web pages. I think this feature is conflicting with JavaScript events.

Todas as respostas (7)

more options

Hi please update to current version 59.0.2 https://support.mozilla.org/en/kb/update-firefox-latest-version

  • Repair System Registry and Files

Find the Dos Prompt Right or Powershell Click and Run as Administrator then : Copy/Paste to Dos Window : DISM /Online /Cleanup-Image /RestoreHealth then hit Enter. Reboot when completed. Note : DISM goes up to Microsoft for new ones

Always make backups :

Please let us know if this solved your issue or if need further assistance.

more options

I'm on 59.0.2 now -- same problem :(.

more options

Your observation appears to be correct: Firefox intercepts the keys and directs them toward a Quick Find bar instead of the document. The document never sees those key events, except perhaps the keydown for the first key pressed by the user.

I was re-using this fiddle for testing: https://jsfiddle.net/e4berr36/20/

more options

Yeah, I hope the Mozilla team is listening because it's a serious problem -- basically any webapp, website, or extension that relies on keyboard events for hotkeys will not work as expected when this feature is enabled.

more options

I guess it depends on what hotkeys sites use. The "Find as You Type" feature should not do anything if the user presses a key combination using Ctrl or Alt.

Also, does anyone use this setting on a regular basis? It's so annoying!

Alterado por jscher2000 - Support Volunteer em

more options

Nothing was picked up at all from my tests, which means combos using Ctrl/Alt won't work either.

more options

10basetom said

Nothing was picked up at all from my tests, which means combos using Ctrl/Alt won't work either.

Ah, never mind -- most combos work. The one I tried (Alt+X) didn't work because it's used by something else.

Still, IMHO this feature should not block normal JavaScript functionality. The least they can do is put a big notice on MDN or the Quantum page marketing this feature.