glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.67k stars 144 forks source link

can't get focus in www.perplexity.ai #1624

Open knkj28 opened 1 month ago

knkj28 commented 1 month ago

What happened

firenvim can launch, but it lost focus in www.perplexity.ai. This only happens in www.perplexity.ai.

https://github.com/user-attachments/assets/f3b8631b-f42b-4146-b736-c4e78d40a2c6

glacambre commented 1 month ago

Hi, thanks for the report. This looks like a platform-specific bug, Firenvim seems to be working fine on perplexity.ai from a linux+firefox setup.

knkj28 commented 1 month ago

@glacambre

Thank you! I found out that the settings below cause this.

vim.g.firenvim_config = {
  localSettings = { ['.*'] = { takeover = 'never' } },
}

But, even if all my settings are removed, sometimes key inputs are recognized by the browser, not Firenvim. This behavior is happening especially after switching between normal mode and insert mode. In the attached video, the character g is ignored by Firenvim.

Is this not happening on your setup?

https://github.com/user-attachments/assets/6e8a6ead-ec21-400d-8153-f0d8401a7372