Skip to content

Commit d0a11a4

Browse files
committed
feat: add Ctrl + Alt + Del button to the tab header menu button. #831
1 parent 0766dc4 commit d0a11a4

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.xaml.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@ private AxMsRdpClient09Host(RDP rdp, int width = 0, int height = 0) : base(rdp,
8888
{
8989
InitializeComponent();
9090

91+
92+
MenuItems.Add(new System.Windows.Controls.Separator());
93+
MenuItems.Add(new System.Windows.Controls.MenuItem()
94+
{
95+
Header = "Ctrl + Alt + Del",
96+
Command = new RelayCommand((o) =>
97+
{
98+
_rdpClient?.Focus();
99+
new MsRdpClientNonScriptableWrapper(_rdpClient.GetOcx()).SendKeys(
100+
new int[] { 0x1d, 0x38, 0x53, 0x53, 0x38, 0x1d },
101+
new bool[] { false, false, false, true, true, true, });
102+
}, o => HasConnected)
103+
});
104+
91105
GridMessageBox.Visibility = Visibility.Collapsed;
92106
GridLoading.Visibility = Visibility.Visible;
93107

Ui/View/Host/ProtocolHosts/HostBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected HostBase(ProtocolBase protocolServer, bool canFullScreen = false)
104104
});
105105
}
106106

107-
MenuItems.Add(new Separator());
107+
MenuItems.Add(new System.Windows.Controls.Separator());
108108

109109
{
110110
var subMenu = new System.Windows.Controls.MenuItem()

Ui/View/Host/ProtocolHosts/VncHost.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private VncHost(VNC vnc) : base(vnc, false)
4040

4141
_vncBase = vnc;
4242

43-
MenuItems.Clear();
43+
MenuItems.Add(new System.Windows.Controls.Separator());
4444
MenuItems.Add(new System.Windows.Controls.MenuItem()
4545
{
4646
Header = "Ctrl + Alt + Del",

0 commit comments

Comments
 (0)