From bffa517250be8c42e09c1a2265f51d4b6de18b14 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Sat, 19 Jan 2019 10:40:13 +0100
Subject: Bind RETURN to view-item by default

Also, use the modern key name instead of the backwards compatibility
name.

Addresses GitHub issue #168.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/keys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/keys.c b/src/keys.c
index 36bd64c..bb36a19 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -80,7 +80,7 @@ static struct keydef_s keydef[NBKEYS] = {
 	{ "generic-prev-day", "T ^H", gettext_noop("-1 Day") },
 	{ "generic-next-day", "t ^L", gettext_noop("+1 Day") },
 	{ "generic-prev-week", "W ^K", gettext_noop("-1 Week") },
-	{ "generic-next-week", "w ^J", gettext_noop("+1 Week") },
+	{ "generic-next-week", "w", gettext_noop("+1 Week") },
 	{ "generic-prev-month", "M", gettext_noop("-1 Month") },
 	{ "generic-next-month", "m", gettext_noop("+1 Month") },
 	{ "generic-prev-year", "Y", gettext_noop("-1 Year") },
@@ -99,7 +99,7 @@ static struct keydef_s keydef[NBKEYS] = {
 	{ "add-item", "a A", gettext_noop("Add Item") },
 	{ "del-item", "d D", gettext_noop("Del Item") },
 	{ "edit-item", "e E", gettext_noop("Edit Itm") },
-	{ "view-item", "v V", gettext_noop("View") },
+	{ "view-item", "v V RET", gettext_noop("View") },
 	{ "pipe-item", "|", gettext_noop("Pipe") },
 	{ "flag-item", "!", gettext_noop("Flag Itm") },
 	{ "repeat", "r", gettext_noop("Repeat") },
-- 
cgit v1.2.3-70-g09d2