Skip to content

Is there any way to remap keystrokes to send to a website using Vimium-C? #1098

Answered by gdh1995
yozba asked this question in Q&A
Discussion options

You must be logged in to vote

Vimium C can only "simluate" keyboard events, so though its dispatchEvent can do so, this simulation may be detected and then refused by some websites.

An example to use dispatchEvent is #756 (comment) .

map <v-de_k> dispatchEvent key="k-75"
# `-de_k` means "keyup", on the contrary to the default "keydown"
run K de_k-de_k
# or you may give a full list of necessary keyboard info parameters
map <v-esc> dispatchEvent type="keydown" code="Escape" key="Escape" keyCode=27

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yozba
Comment options

Answer selected by yozba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants