mothra: add keyboard command a to collapse/expand navigation boxes

This commit is contained in:
stanley lieber 2011-09-23 11:04:08 -05:00
parent f03f333633
commit 126290e423
2 changed files with 9 additions and 1 deletions

View file

@ -93,7 +93,10 @@ Ask for confirmation and quit.
.PD
.PP
The typed commands are:
.TF save\ back
.TF typed\ commands
.TP
.B a
Collapse or expand the navigation boxes at the top of the browser window.
.TP
.BI g " url
Get the page with the given URL.

View file

@ -524,6 +524,11 @@ void docmd(Panel *p, char *s){
default:
message("Unknown command %s, type h for help", s);
break;
case 'a':
s=arg(s);
if(*s == '\0' && selection)
hit3(3, 0);
break;
case 'g':
s=arg(s);
if(*s=='\0'){