Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>test_gui_mouse_event

๐Ÿ“š Standard module for denops.vim
Go to Latest
function test_gui_mouse_event
import { test_gui_mouse_event } from "https://deno.land/x/denops_std@v3.9.0/function/vim/mod.ts";

Inject a mouse button click event. This function only works when the GUI is running. The supported values for {button} are: 0 right mouse button 1 middle mouse button 2 left mouse button 3 mouse button release 4 scroll wheel down 5 scroll wheel up 6 scroll wheel left 7 scroll wheel right {row} and {col} specify the location of the mouse click. The first row of the Vim window is 1 and the last row is 'lines'. The maximum value of {col} is 'columns'. To inject a multiclick event, set {multiclick} to 1. The supported values for {modifiers} are: 4 shift is pressed 8 alt is pressed 16 ctrl is pressed After injecting the mouse event you probably should call |feedkeys()| to have them processed, e.g.: call feedkeys("y", 'Lx!')

Parameters

denops: Denops
button: unknown
row: unknown
col: unknown
multiclick: unknown
modifiers: unknown

Returns

Promise<unknown>