mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Fix the Exit hotkey.
We were constructing our wxCommandEvent incorrectly and using an ID as an event type instead of the ID. Works properly now.
This commit is contained in:
parent
7b9eeba168
commit
abb4c64c8f
@ -1322,7 +1322,7 @@ void CFrame::ParseHotkeys()
|
|||||||
if (IsHotkey(HK_SCREENSHOT))
|
if (IsHotkey(HK_SCREENSHOT))
|
||||||
Core::SaveScreenShot();
|
Core::SaveScreenShot();
|
||||||
if (IsHotkey(HK_EXIT))
|
if (IsHotkey(HK_EXIT))
|
||||||
wxPostEvent(this, wxCommandEvent(wxID_EXIT));
|
wxPostEvent(this, wxCommandEvent(wxEVT_MENU, wxID_EXIT));
|
||||||
if (IsHotkey(HK_VOLUME_DOWN))
|
if (IsHotkey(HK_VOLUME_DOWN))
|
||||||
AudioCommon::DecreaseVolume(3);
|
AudioCommon::DecreaseVolume(3);
|
||||||
if (IsHotkey(HK_VOLUME_UP))
|
if (IsHotkey(HK_VOLUME_UP))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user