From b08143431520517e14a2913fac7abf481c2b513d Mon Sep 17 00:00:00 2001 From: D Anzorge Date: Wed, 2 Feb 2022 23:42:26 +0100 Subject: [PATCH] Add an entry for the diary in the Action Menu (under Info) --- data/raw/keybindings.json | 6 ++++++ src/action.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/data/raw/keybindings.json b/data/raw/keybindings.json index 5405e13c4e8b0..b180d5fc03a0a 100644 --- a/data/raw/keybindings.json +++ b/data/raw/keybindings.json @@ -2713,6 +2713,12 @@ "name": "Spellcasting", "category": "DEFAULTMODE" }, + { + "type": "keybinding", + "id": "diary", + "name": "Open Diary", + "category": "DEFAULTMODE" + }, { "type": "keybinding", "id": "SCROLL_ITEM_INFO_UP", diff --git a/src/action.cpp b/src/action.cpp index 32650c586a65c..a5e9dcb058ccb 100644 --- a/src/action.cpp +++ b/src/action.cpp @@ -948,6 +948,7 @@ action_id handle_action_menu() REGISTER_ACTION( ACTION_FACTIONS ); REGISTER_ACTION( ACTION_MORALE ); REGISTER_ACTION( ACTION_MESSAGES ); + REGISTER_ACTION( ACTION_DIARY ); } else if( category == _( "Misc" ) ) { REGISTER_ACTION( ACTION_WAIT ); REGISTER_ACTION( ACTION_SLEEP );