From 126290e42356a733d15c8c2ed224a31a25f8b564 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Fri, 23 Sep 2011 11:04:08 -0500 Subject: mothra: add keyboard command a to collapse/expand navigation boxes --- sys/man/1/mothra | 5 ++++- sys/src/cmd/mothra/mothra.c | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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'){ -- cgit v1.2.3