add support for mouse buttons and wheels

cc #268
This commit is contained in:
Gokcehan committed 2021-01-19 01:20:34 +03:00
1 parent af988284a4
commit a13c14fb07
5 files changed
+98

No files matched your search

+18
View File
@@ -835,6 +835,24 @@ On these terminals, keys combined with the alt key are prefixed with 'a' charact
Please note that, some key combinations are not possible due to the way terminals work (e.g. control and h combination sends a backspace key instead).
The easiest way to find the name of a key combination is to press the key while lf is running and read the name of the key from the unknown mapping error.
Mouse buttons are prefixed with 'm' character:
map <m-1> down # primary
map <m-2> down # secondary
map <m-3> down # middle
map <m-4> down
map <m-5> down
map <m-6> down
map <m-7> down
map <m-8> down
Mouse wheel events are also prefixed with 'm' character:
map <m-up> down
map <m-down> down
map <m-left> down
map <m-right> down
Push Mappings
The usual way to map a key sequence is to assign it to a named or unnamed command.