mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Changed refocusing method for rdp tabs
Solve bug reported by Joe Cefoli on gitter
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using mRemoteNG.App;
|
||||
using mRemoteNG.UI.Tabs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -11,13 +13,12 @@ namespace mRemoteNG.Connection.Protocol.RDP
|
||||
public RdpClientWrap()
|
||||
: base()
|
||||
{
|
||||
GotFocus += RdpClientWrap_GotFocus;
|
||||
}
|
||||
|
||||
protected override void WndProc(ref System.Windows.Forms.Message m)
|
||||
private void RdpClientWrap_GotFocus(object sender, EventArgs e)
|
||||
{
|
||||
if (m.Msg == 0x0021)
|
||||
this.Parent.Parent.Focus();
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
((ConnectionTab)Parent.Parent).Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user