From f91208c2f43d6fda12f410840a0a1cd63091a9d3 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <calcurse@cryptocrack.de>
Date: Mon, 23 Feb 2015 19:59:58 +0100
Subject: Make "Add Item" work from the calendar panel

Support the "Add item" key binding in the calendar panel and make it add
a new appointment.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
---
 src/calcurse.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src')

diff --git a/src/calcurse.c b/src/calcurse.c
index ae7e71e..a29eae0 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -120,6 +120,7 @@ static inline void key_add_item(void)
 {
 	switch (wins_slctd()) {
 	case APP:
+	case CAL:
 		ui_day_item_add();
 		do_storage(0);
 		wins_update(FLAG_CAL | FLAG_APP | FLAG_STA);
-- 
cgit v1.2.3-70-g09d2