Skip to content

Commit

Permalink
Allow closing with Alt+F4. Closes #407
Browse files Browse the repository at this point in the history
  • Loading branch information
Iridium-IO committed Jul 8, 2024
1 parent 993d3e5 commit 1005b1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CompactGUI/Views/MainWindow.xaml.vb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ Class MainWindow

Private Sub Window_PreviewKeyDown(sender As Object, e As KeyEventArgs)

If e.Key = Key.System Then e.Handled = True
If e.Key = Key.System AndAlso e.SystemKey = Key.F4 Then
Return
ElseIf e.Key = Key.System Then
e.Handled = True
End If

End Sub

Expand Down

0 comments on commit 1005b1a

Please sign in to comment.