summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-24 18:59:16 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-24 18:59:16 +0000
commit2cfafe8a89f446b58bc1d026f100c01c0d7cf1a9 (patch)
tree206033ade9ab0e76576b66a4507cf8417d66a60a /src/calcurse.c
parent8929a81f3d1531b729c7a09c062311132d481e69 (diff)
downloadcalcurse-2cfafe8a89f446b58bc1d026f100c01c0d7cf1a9.zip
Work on implementing the weekly calendar view.
Diffstat (limited to 'src/calcurse.c')
-rwxr-xr-xsrc/calcurse.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 051008d..ee9ac7d 100755
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -1,4 +1,4 @@
-/* $calcurse: calcurse.c,v 1.85 2009/07/26 20:38:35 culot Exp $ */
+/* $calcurse: calcurse.c,v 1.86 2009/08/24 18:59:17 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -526,6 +526,16 @@ main (int argc, char **argv)
calendar_move (WEEK_END);
}
break;
+
+ case KEY_GENERIC_SCROLL_UP:
+ if (wins_slctd () == CAL)
+ calendar_view_prev ();
+ break;
+
+ case KEY_GENERIC_SCROLL_DOWN:
+ if (wins_slctd () == CAL)
+ calendar_view_next ();
+ break;
case KEY_GENERIC_QUIT:
if (conf.auto_save)