feat: add dot/decimal support.

This commit is contained in:
rabbitism
2023-02-25 00:29:54 +08:00
parent 4e08e8ffec
commit 6d63cd566e

View File

@@ -154,7 +154,7 @@ public class IPv4Box: TemplatedControl
_currentActivePresenter.SelectionEnd = _currentActivePresenter.Text?.Length ?? 0; _currentActivePresenter.SelectionEnd = _currentActivePresenter.Text?.Length ?? 0;
return; return;
} }
if (e.Key == Key.Tab) if (e.Key == Key.Tab || e.Key == Key.OemPeriod || e.Key == Key.Decimal)
{ {
_currentActivePresenter?.HideCaret(); _currentActivePresenter?.HideCaret();
ClearSelection(_currentActivePresenter); ClearSelection(_currentActivePresenter);