vimperator-labs icon indicating copy to clipboard operation
vimperator-labs copied to clipboard

Can't escape insert mode

Open stemar94 opened this issue 9 years ago • 8 comments

Issue type:
  • Bug report (maybe)
  • Feature request (maybe)
Version:
Vimperator: 3.15.0 (created: 2016/10/13 15:31:18)
Firefox:    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Description:

For example on the web interface of https://web.whatsapp.com/ I cannot escape the insert mode since after hitting <Esc> it will immediate switch back into insert mode.

Expected behavior:

After hitting <Esc> I will be brought back to normal mode without the immediate switch back to insert mode.

Steps to reproduce:
  1. Open chat window on the web interface of https://web.whatsapp.com/ .
  2. Be stuck in insert mode.

stemar94 avatar Oct 19 '16 11:10 stemar94

I think this is a "feature" of whatsapp that always forces focus to the textarea.

SammysHP avatar Oct 19 '16 22:10 SammysHP

Same here. It started a couple of days ago.

Doesn't matter, weather I press Esc or Strg + ], I can't escape the insert mode on web.whatsapp.com.

MPW1412 avatar Oct 23 '16 08:10 MPW1412

This sounds similar to #14 for me. But I don't know, what was done to resolve it.

MPW1412 avatar Nov 11 '16 09:11 MPW1412

This issue still exists in 3.16.

MPW1412 avatar Feb 07 '17 15:02 MPW1412

Probably nothing we can change if whatsapp always grabs the focus. There might be an unfocus event listener that automatically grabs the focus again.

A possible solution might be to add a rule for the whatsapp domain that disables all focus events. IIRC this is possible with autocommands in Vimperator.

SammysHP avatar Feb 07 '17 19:02 SammysHP

There is a workaround for google.com, and I think that the browser should be capable to interrupt the focus queue.

MPW1412 avatar Feb 07 '17 20:02 MPW1412

Maybe we can find a way to block that specific javascript function that causes this?

darnir avatar Feb 14 '17 18:02 darnir

Yes, as I said: Create an autocommand (:help :autocmd) that disables the part of the Whatsapp JavaScript code that grabs the focus. This should be user specific and not in Vimperator's code.

SammysHP avatar Feb 14 '17 18:02 SammysHP