Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ctrl alt delete button for VMs #59

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions VMPlex/UI/VmRdpPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
</ui:AppBarButton.Icon>
</ui:AppBarButton>
<ui:AppBarSeparator IsCompact="True"/>
<ui:AppBarButton x:Name="vmCtrlAltDel" ToolTip="Ctrl+Alt+Delete" Click="OnCtrlAltDelCommand" IsTabStop="False" IsCompact="True">
<ui:AppBarButton.Icon>
<ui:FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE74C;"/>
</ui:AppBarButton.Icon>
</ui:AppBarButton>
<ui:AppBarButton x:Name="vmTypeClipboard" ToolTip="Type Clipboard" Click="OnTypeCommand" IsTabStop="False" IsCompact="True">
<ui:AppBarButton.Icon>
<ui:FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE765;"/>
Expand Down
5 changes: 5 additions & 0 deletions VMPlex/UI/VmRdpPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ private void OnRebootCommand(object sender, RoutedEventArgs e)
}
}

private void OnCtrlAltDelCommand(object sender, RoutedEventArgs e)
{
m_vm.TypeCtrlAltDel();
}

private void OnTypeCommand(object sender, RoutedEventArgs e)
{
m_vm.TypeText(Clipboard.GetText());
Expand Down
5 changes: 5 additions & 0 deletions VMPlex/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ public VmConfig MutateVmUserSettings(Func<VmConfig, VmConfig> Mutator)
}).VirtualMachines.First(v => v.Guid == Guid);
}

public void TypeCtrlAltDel()
{
Keyboard.TypeCtrlAltDel();
}

public void OpenDebugger()
{
var settings = UserSettings.Instance.Settings;
Expand Down