diff options
| author | 2020-03-11 09:14:59 +0530 | |
|---|---|---|
| committer | 2020-03-11 09:14:59 +0530 | |
| commit | bf89040ace3105b6efde45ce3a078d5d594e5deb (patch) | |
| tree | 2ae79c912077bfaa990c772c0b71202992a3d1be | |
| parent | c9a17d80be4f14ce22273532372028f7861bd74a (diff) | |
| download | nnn-bf89040ace3105b6efde45ce3a078d5d594e5deb.tar.gz | |
Case-insensitive Ctrl-key handling, man page update
| -rw-r--r-- | nnn.1 | 4 | ||||
| -rw-r--r-- | src/nnn.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -380,11 +380,11 @@ separated by \fI;\fR: export NNN_MCLICK='p' NOTES: - 1. You can use the '^\fIkey\fR' syntax to assign it to a \fICtrl+key\fR combo, e.g.: + 1. To specify a \fICtrl+key\fR combo: export NNN_MCLICK='^A' - 2. Otherwise, only the first character is taken into account. + 2. Otherwise, only the first character is considered. .Ed .Pp \fBnnn:\fR this is a special variable set to the hovered entry before executing @@ -32,7 +32,7 @@ #include <curses.h> -#define CONTROL(c) ((c) ^ 0x40) +#define CONTROL(c) ((c) & 0x1f) /* Supported actions */ enum action { |