From c1cc812a7b38e03c350c41d28fd86aac377f3da1 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Tue, 13 Apr 2010 13:27:34 +0000 Subject: [PATCH] This should force the GS frame focus properly when doing a system execute. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2841 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/gui/FrameForGS.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index f5302b1053..54d59fadc3 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -409,6 +409,13 @@ void GSFrame::OnMove( wxMoveEvent& evt ) //lastpos = evt.GetPosition(); } +void GSFrame::SetFocus() +{ + _parent::SetFocus(); + if( GSPanel* gsPanel = GetViewport() ) + gsPanel->SetFocusFromKbd(); +} + void GSFrame::OnResize( wxSizeEvent& evt ) { if( IsBeingDeleted() ) return;