I'm using an extension called Memex, which injects a sidebar into websites for writing notes.
I wrote about this before in bug #1340 with an option of disabling vim-vixen by selector as a solution. I have found the root issue here. The extension uses ProseMirror and it captures input events on the root of the injected sidebar, which doesn't have the contenteditable property on it.
The markup for a typical input from the extension looks like this, but like I said, the input is captured at the root of the injected sidebar (I think the extension uses react, which uses this pattern).
Essentially changing from const target = e.target; to const target = e.originalTarget would fix this particular instance of the bug. I would like to raise a PR with this change.
Failure Information (for bugs)
When I try to add a note in the above mentioned plugin, vim-vixen captures the input and triggers the action. This can be very frustrating, especially if the note starts with r which leads to a page refresh.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Install Memex
Select some text on a website.
Click on "Add Note"
Try to write text in the note field in the sidebar on the right.
If the key you pressed is a vim-vixen shortcut, it will trigger even though you are expecting to write in what amounts to an input.
I'm opening this issue because:
Description
I'm using an extension called Memex, which injects a sidebar into websites for writing notes.
I wrote about this before in bug #1340 with an option of disabling vim-vixen by selector as a solution. I have found the root issue here. The extension uses ProseMirror and it captures input events on the root of the injected sidebar, which doesn't have the
contenteditable
property on it.The markup for a typical input from the extension looks like this, but like I said, the input is captured at the root of the injected sidebar (I think the extension uses react, which uses this pattern).
This could easily be fixed by changing the target the
InputDriver
checks for in thecapture
method.Essentially changing from
const target = e.target;
toconst target = e.originalTarget
would fix this particular instance of the bug. I would like to raise a PR with this change.Failure Information (for bugs)
When I try to add a note in the above mentioned plugin, vim-vixen captures the input and triggers the action. This can be very frustrating, especially if the note starts with
r
which leads to a page refresh.Steps to Reproduce
Please provide detailed steps for reproducing the issue.
System configuration
Console logs
Any relevant log in developer tools: