bindings: allow using '/' to start a search in the help viewer

And allow 'N' for searching the next occurrence.  Add the
same keystrokes to the file browser too, for consistency.
master
Benno Schulenberg 2017-04-24 16:10:25 +02:00
parent b3b3dd5792
commit ae15fc9bb2
2 changed files with 11 additions and 0 deletions

View File

@ -490,7 +490,11 @@ functionptrtype parse_browser_input(int *kbinput)
return do_enter; return do_enter;
case 'W': case 'W':
case 'w': case 'w':
case '/':
return do_search; return do_search;
case 'N':
case 'n':
return do_research;
} }
} }
return func_from_key(kbinput); return func_from_key(kbinput);

View File

@ -574,6 +574,13 @@ functionptrtype parse_help_input(int *kbinput)
return do_page_down; return do_page_down;
case '-': case '-':
return do_page_up; return do_page_up;
case 'W':
case 'w':
case '/':
return do_search;
case 'N':
case 'n':
return do_research;
case 'E': case 'E':
case 'e': case 'e':
case 'Q': case 'Q':