diff --git a/src/Views/ExecuteCustomAction.axaml b/src/Views/ExecuteCustomAction.axaml index fd2a9c65..497f17cd 100644 --- a/src/Views/ExecuteCustomAction.axaml +++ b/src/Views/ExecuteCustomAction.axaml @@ -56,12 +56,6 @@ - - - - @@ -70,7 +64,7 @@ - + - + - + () - .FirstOrDefault(x => x.Focusable && x.IsTabStop); - firstFocusable?.Focus(); + var inputs = this.GetVisualDescendants(); + foreach (var input in inputs) + { + if (input is InputElement { Focusable: true, IsTabStop: true } focusable) + { + focusable.Focus(); + return; + } + } } private async void SelectPath(object sender, RoutedEventArgs e)