PinCode 去除 OnPreviewKeyDown 里无意义的 TextBox 创建

This commit is contained in:
杨劼
2025-09-17 14:09:19 +08:00
parent 26f0a3a98d
commit 9236b9f8c8

View File

@@ -161,7 +161,6 @@ public class PinCode : TemplatedControl
protected async void OnPreviewKeyDown(KeyEventArgs e)
{
TextBox b = new TextBox();
var pasteKeys = Application.Current?.PlatformSettings?.HotkeyConfiguration.Paste;
if (pasteKeys?.Any(a => a.Matches(e)) == true)
{