summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h10
-rw-r--r--src/input/pages/basic.cpp6
3 files changed, 17 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 7ab68911c..91c49ebc6 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -489,6 +489,7 @@ namespace InputAction
WINDOW_BANK,
PREV_INV_TAB,
NEXT_INV_TAB,
+ CONTEXT_MENU,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index afa66df87..585334713 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4143,6 +4143,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::NOINPUT | InputCondition::INGAME,
"nextinvtab",
false},
+ {"keyContextMenu",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::contextMenu,
+ InputAction::NO_VALUE, 50,
+ InputCondition::NOINPUT | InputCondition::NOAWAY
+ | InputCondition::NOMODAL | InputCondition::INGAME,
+ "contextmenu",
+ false},
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp
index 13b3a770c..c4b0db2d3 100644
--- a/src/input/pages/basic.cpp
+++ b/src/input/pages/basic.cpp
@@ -236,6 +236,12 @@ SetupActionData setupActionDataBasic[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Open context menu"),
+ InputAction::CONTEXT_MENU,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""