aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-25 08:19:49 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-25 08:19:49 +0100
commitc88566e7bbc411f06cffd21eacb3c881c62c2a2f (patch)
tree43c17bfa361e7581bf1fa0c2c49eb7b5b205f1b8
parent39c840cd74ed3faa795ebdf71cc31bdab6ca23ee (diff)
downloadsdn-c88566e7bbc411f06cffd21eacb3c881c62c2a2f.tar.gz
sdn-c88566e7bbc411f06cffd21eacb3c881c62c2a2f.tar.xz
sdn-c88566e7bbc411f06cffd21eacb3c881c62c2a2f.zip
Bind F1 to show the help
-rw-r--r--sdn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdn.cpp b/sdn.cpp
index de25975..1deb0fa 100644
--- a/sdn.cpp
+++ b/sdn.cpp
@@ -423,7 +423,8 @@ static const char *g_action_names[] = {ACTIONS(XX)};
static map<wint_t, action> g_normal_actions {
{ALT | '\r', ACTION_CHOOSE_FULL}, {ALT | KEY (ENTER), ACTION_CHOOSE_FULL},
{'\r', ACTION_CHOOSE}, {KEY (ENTER), ACTION_CHOOSE},
- {KEY (F (3)), ACTION_VIEW}, {KEY (F (4)), ACTION_EDIT}, {'h', ACTION_HELP},
+ {KEY (F (1)), ACTION_HELP}, {'h', ACTION_HELP},
+ {KEY (F (3)), ACTION_VIEW}, {KEY (F (4)), ACTION_EDIT},
{'q', ACTION_QUIT}, {ALT | 'q', ACTION_QUIT_NO_CHDIR},
// M-o ought to be the same shortcut the navigator is launched with
{ALT | 'o', ACTION_QUIT},