fix: close #1406
This commit is contained in:
1 parent
8d900ecbc6
commit
0d0a5028d1
1 file changed
+5
@@ -9,6 +9,11 @@ public class TextBox : System.Windows.Controls.TextBox
|
||||
{
|
||||
CommandBindings.Add(new CommandBinding(ControlCommands.Clear, (s, e) =>
|
||||
{
|
||||
if (IsReadOnly)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SetCurrentValue(TextProperty, string.Empty);
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user