From a5129c141c91a5358c8d2990d152b142fe8cdf37 Mon Sep 17 00:00:00 2001 From: Absotively Date: Sat, 20 Sep 2025 12:55:34 -0600 Subject: [PATCH] Don't overwrite values that are mid-edit in air alarm window (#40338) --- .../Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs index 55f7c00898..38c631e630 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs @@ -30,7 +30,10 @@ public sealed partial class ThresholdBoundControl : BoxContainer public void SetValue(float value) { _value = value; - CSpinner.Value = ScaledValue; + if (!CSpinner.HasKeyboardFocus()) + { + CSpinner.Value = ScaledValue; + } } public void SetEnabled(bool enabled) -- 2.51.2