From 6d63cd566ea3bb31a31d564e1007709755747960 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sat, 25 Feb 2023 00:29:54 +0800 Subject: [PATCH] feat: add dot/decimal support. --- src/Ursa/Controls/IPv4Box.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ursa/Controls/IPv4Box.cs b/src/Ursa/Controls/IPv4Box.cs index e8e6b92..34f60f2 100644 --- a/src/Ursa/Controls/IPv4Box.cs +++ b/src/Ursa/Controls/IPv4Box.cs @@ -154,7 +154,7 @@ public class IPv4Box: TemplatedControl _currentActivePresenter.SelectionEnd = _currentActivePresenter.Text?.Length ?? 0; return; } - if (e.Key == Key.Tab) + if (e.Key == Key.Tab || e.Key == Key.OemPeriod || e.Key == Key.Decimal) { _currentActivePresenter?.HideCaret(); ClearSelection(_currentActivePresenter);