diff options
author | Christopher Plewright <chris@createng.com> | 2022-12-30 16:54:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-30 16:54:58 +0000 |
commit | 7b0afc1d7698a79423c7b066a5d8d20dbb8a295a (patch) | |
tree | 91b54b32537fc514333de415153a6cc6cb09efd5 /runtime/doc | |
parent | 96dd34e53492913029323dad902831380fa460d0 (diff) | |
download | vim-git-7b0afc1d7698a79423c7b066a5d8d20dbb8a295a.tar.gz |
patch 9.0.1112: test_mswin_event() can hangv9.0.1112
Problem: test_mswin_event() can hang.
Solution: Add the "execute" argument to process events right away.
(Christopher Plewright, closes #11760)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/testing.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index b03726572..089e61fa0 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -274,7 +274,7 @@ test_mswin_event({event}, {args}) *test_mswin_event()* event: The supported string values are: keyup generate a keyup event keydown generate a keydown event - keycode: Keycode to use for a keyup or a keydown event. + keycode: Keycode to use for a keyup or a keydown event. modifiers: Optional; key modifiers. The supported values are: 2 shift is pressed @@ -282,9 +282,14 @@ test_mswin_event({event}, {args}) *test_mswin_event()* 8 alt is pressed Note: These values are different from the mouse modifiers. - *E1291* - Returns TRUE if the event is successfully added, FALSE if - there is a failure. + execute: Optional. Similar to |feedkeys()| mode x. + When this is included and set to true + (non-zero) then Vim will process any buffered + unprocessed key events. All other {args} + items are optional when this is set and true. + + Returns TRUE if the event is successfully added or executed, + FALSE if there is a failure. Can also be used as a |method|: > GetEvent()->test_mswin_event({args}) |