Fix fullscreen switch being triggered twice on hotkey. Should fix issue #4098.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7171 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
smelenchuk 2011-02-14 18:53:54 +00:00
parent 0ae8d33149
commit ae4c8c81ac
1 changed files with 1 additions and 2 deletions

View File

@ -886,8 +886,7 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
if (IsHotkey(event, HK_FULLSCREEN))
DoFullscreen(!RendererIsFullscreen());
// Send Debugger keys to CodeWindow
//else
if (g_pCodeWindow && (event.GetKeyCode() >= WXK_F9 && event.GetKeyCode() <= WXK_F11))
else if (g_pCodeWindow && (event.GetKeyCode() >= WXK_F9 && event.GetKeyCode() <= WXK_F11))
event.Skip();
// Pause and Unpause
else if (IsHotkey(event, HK_PLAY_PAUSE))