diff options
author | Ernie Rael <errael@raelity.com> | 2022-04-03 15:47:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-03 15:47:28 +0100 |
commit | c4cb544cd5beaa864b3893e4b8d0085393c7dbce (patch) | |
tree | 3e04f56d7b0a6d71d3bcb40c9107b031cf5bd949 /runtime/doc/testing.txt | |
parent | 8ef6997e2d90808dec033373c96dda68843af12e (diff) |
patch 8.2.4674: cannot force getting MouseMove eventsv8.2.4674
Problem: Cannot force getting MouseMove events.
Solution: Add the 'mousemoveevent' option with implementaiton for the GUI.
(Ernie Rael, closes #10044)
Diffstat (limited to 'runtime/doc/testing.txt')
-rw-r--r-- | runtime/doc/testing.txt | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 2a74883a94..1b726f7390 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -131,8 +131,8 @@ test_gui_event({event}, {args}) forward: set to 1 for forward search. "mouse": - Inject a mouse button click event. The supported items in - {args} are: + Inject either a mouse button click, or a mouse move, event. + The supported items in {args} are: button: mouse button. The supported values are: 0 right mouse button 1 middle mouse button @@ -151,6 +151,28 @@ test_gui_event({event}, {args}) 4 shift is pressed 8 alt is pressed 16 ctrl is pressed + move: Optional; if used and TRUE then a mouse move + event can be generated. + Only {args} row: and col: are used and + required; they are interpreted as pixels. + Only results in an event when 'mousemoveevent' + is set or a popup uses mouse move events. + + "scrollbar": + Set or drag the left, right or horizontal scrollbar. Only + works when the scrollbar actually exists. The supported + items in {args} are: + which: scrollbar. The supported values are: + left Left scrollbar of the current window + right Right scrollbar of the current window + hor Horizontal scrollbar + value: amount to scroll. For the vertical scrollbars + the value can be 1 to the line-count of the + buffer. For the horizontal scrollbar the + value can be between 1 and the maximum line + length, assuming 'wrap' is not set. + dragging: 1 to drag the scrollbar and 0 to click in the + scrollbar. "scrollbar": Set or drag the left, right or horizontal scrollbar. Only |