diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 11:04:08 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2011-09-23 11:04:08 -0500 |
commit | 126290e42356a733d15c8c2ed224a31a25f8b564 (patch) | |
tree | 949cc585874ce897b1d485097fdd0514a71ce93b | |
parent | f03f333633d4768f13b1d29410d3e1e8fa22fb9f (diff) |
mothra: add keyboard command a to collapse/expand navigation boxes
-rw-r--r-- | sys/man/1/mothra | 5 | ||||
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sys/man/1/mothra b/sys/man/1/mothra index 7cadd55c0..8c1d793d5 100644 --- a/sys/man/1/mothra +++ b/sys/man/1/mothra @@ -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. diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index d9c88fa0a..ea9db9155 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -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'){ |