You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
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).
<divclass="ProseMirrorContainer" aria-expanded="false" lang="en"><divtranslate="no" class="ProseMirror ProseMirror-focused" tabindex="0" contenteditable="true"><pdata-placeholder="Add Note. Click on ( ? ) for formatting help." class="is-empty is-editor-empty"><brclass="ProseMirror-trailingBreak"></p></div></div>
This could easily be fixed by changing the target the InputDriver checks for in the capture method.
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.
System configuration
Operating system: MacOs 12.3 Monterey
Firefox version: 101.0a1 (2022-04-05) (64-bit)
Vim-Vixen version: 1.2.3
Console logs
Any relevant log in developer tools:
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
The text was updated successfully, but these errors were encountered: