Skip to content

Commit

Permalink
Handheld form behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Jan 27, 2024
1 parent 6f86195 commit 8c5f4aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ public void HideAll()
if (extraForm != null && extraForm.Text != "") extraForm.Close();
if (updatesForm != null && updatesForm.Text != "") updatesForm.Close();
if (matrixForm != null && matrixForm.Text != "") matrixForm.Close();
if (handheldForm != null && handheldForm.Text != "") handheldForm.Close();
}

/// <summary>
Expand All @@ -1044,6 +1045,7 @@ public bool HasAnyFocus(bool lostFocusCheck = false)
(extraForm != null && extraForm.ContainsFocus) ||
(updatesForm != null && updatesForm.ContainsFocus) ||
(matrixForm != null && matrixForm.ContainsFocus) ||
(handheldForm != null && handheldForm.ContainsFocus) ||
this.ContainsFocus ||
(lostFocusCheck && Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastLostFocus) < 300);
}
Expand Down

0 comments on commit 8c5f4aa

Please sign in to comment.