Support modifiers in special key mappings (#1248)
* Support modifiers in mappings * Update docs * Support cmap keybindings as well * Implement push * Move order of escape key check * Add safety check * Fix safety check * Factor out common logic
This commit is contained in:
1 parent
88b3c999af
commit
1be7d2689a
5 files changed
+75
-29
No files matched your search
@@ -1142,8 +1142,13 @@ On these terminals, keys combined with the alt key are prefixed with 'a' charact
|
||||
|
||||
map <a-a> down
|
||||
|
||||
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.
|
||||
It is possible to combine special keys with modifiers:
|
||||
|
||||
map <a-enter> down
|
||||
|
||||
WARNING: Some key combinations will likely be intercepted by your OS, window manager, or terminal.
|
||||
Other key combinations cannot be recognized by lf due to the way terminals work (e.g. `Ctrl+h` combination sends a backspace key instead).
|
||||
The easiest way to find out the name of a key combination and whether it will work on your system is to press the key while lf is running and read the name from the "unknown mapping" error.
|
||||
|
||||
Mouse buttons are prefixed with 'm' character:
|
||||
|
||||
|
||||
Reference in new issue
Block a user