From e0161c3bb2f5e5f4e9d7f9569ba86010899c08c5 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 8 Mar 2021 11:45:46 +1000 Subject: [PATCH] CommonHostInterface: Use key-release to open quick menu Fixes auto closing when it's bound to escape. --- src/frontend-common/common_host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 55a36f608..522e8dbea 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -1789,7 +1789,7 @@ void CommonHostInterface::RegisterGeneralHotkeys() { RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("OpenQuickMenu"), TRANSLATABLE("Hotkeys", "Open Quick Menu"), [this](bool pressed) { - if (pressed && m_fullscreen_ui_enabled) + if (!pressed && m_fullscreen_ui_enabled) FullscreenUI::OpenQuickMenu(); });