CommonHostInterface: Use key-release to open quick menu

Fixes auto closing when it's bound to escape.
This commit is contained in:
Connor McLaughlin 2021-03-08 11:45:46 +10:00
parent e2694b2570
commit e0161c3bb2
1 changed files with 1 additions and 1 deletions

View File

@ -1789,7 +1789,7 @@ void CommonHostInterface::RegisterGeneralHotkeys()
{ {
RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("OpenQuickMenu"), RegisterHotkey(StaticString(TRANSLATABLE("Hotkeys", "General")), StaticString("OpenQuickMenu"),
TRANSLATABLE("Hotkeys", "Open Quick Menu"), [this](bool pressed) { TRANSLATABLE("Hotkeys", "Open Quick Menu"), [this](bool pressed) {
if (pressed && m_fullscreen_ui_enabled) if (!pressed && m_fullscreen_ui_enabled)
FullscreenUI::OpenQuickMenu(); FullscreenUI::OpenQuickMenu();
}); });