From 055a056ddc8f5098ddbf269aa0f90afdbf3ecc7d Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Wed, 22 Dec 2010 20:25:24 +0000 Subject: [PATCH] Clarify comment about the use of event.Skip(). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6649 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Frame.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 0481914127..5ef463b391 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -807,13 +807,14 @@ void CFrame::OnKeyDown(wxKeyEvent& event) event.Skip(); } else -#ifdef __APPLE__ - // We claim all keyboard events while emulation is - // running to avoid wxWidgets sounding the system beep - // for unhandled key events when receiving pad/wiimote - // keypresses separately from HID devices. - return; -#else + // On OS X, we claim all keyboard events while + // emulation is running to avoid wxWidgets sounding + // the system beep for unhandled key events when + // receiving pad/wiimote keypresses which take an + // entirely different path through the HID subsystem. +#ifndef __APPLE__ + // On other platforms, we leave the key event alone + // so it can be passed on to the windowing system. event.Skip(); #endif