From 08a6e7e710f34b4363513b6c583ce1a6660c96b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Apr 2015 13:59:24 +0300 Subject: Add action for open yellow bar settings page (quick page). --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/windows.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f39b1864b..d5bad5483 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -594,6 +594,7 @@ namespace InputAction CREATE_PUBLIC_ROOM, JOIN_ROOM, LEAVE_ROOM, + WINDOW_QUICK_SETTINGS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 9d6293628..54a15e806 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4451,6 +4451,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "leaveroom", false}, + {"keyWindowStatusBar", + emptyKey, + emptyKey, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::quickWindowShow, + InputAction::NO_VALUE, 50, + InputCondition::GAME | InputCondition::NOTARGET, + "yellowbar|quickoptions", + false}, }; #undef defaultAction diff --git a/src/input/pages/windows.cpp b/src/input/pages/windows.cpp index 396facb49..8d1f8ebc7 100644 --- a/src/input/pages/windows.cpp +++ b/src/input/pages/windows.cpp @@ -199,6 +199,12 @@ SetupActionData setupActionDataWindows[] = InputAction::WINDOW_CART, "", }, + { + // TRANSLATORS: input action name + N_("Quick settings window"), + InputAction::WINDOW_QUICK_SETTINGS, + "", + }, { // TRANSLATORS: input action label N_("Tabs"), -- cgit v1.2.3-70-g09d2