From 968c8352490c201174cc56e0f191b0277bb1c748 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 3 Oct 2020 23:39:38 +1000 Subject: [PATCH] CommonHostInterface: Add reset hotkey --- src/frontend-common/common_host_interface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index a4f1a918d..af9b24d5a 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1408,6 +1408,12 @@ void CommonHostInterface::RegisterGeneralHotkeys() } }); + RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("Reset"), + StaticString(TRANSLATABLE("Hotkeys", "Reset System")), [this](bool pressed) { + if (!pressed && System::IsValid()) + ResetSystem(); + }); + RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("Screenshot"), StaticString(TRANSLATABLE("Hotkeys", "Save Screenshot")), [this](bool pressed) { if (!pressed && System::IsValid())