Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 832ee25

Browse files
committed
Select draft text when shown.
1 parent 0e58e32 commit 832ee25

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/GitHub.VisualStudio.UI/Views/CommentView.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
TextWrapping="Wrap"
155155
VerticalAlignment="Center"
156156
GotFocus="ReplyPlaceholder_GotFocus"
157+
Loaded="body_Loaded"
157158
SpellCheck.IsEnabled="True">
158159
<ui:PromptTextBox.Style>
159160
<Style TargetType="ui:PromptTextBox" BasedOn="{StaticResource RoundedPromptTextBox}">

src/GitHub.VisualStudio.UI/Views/CommentView.xaml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,11 @@ void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
7070
GetBrowser().OpenUrl(uri);
7171
}
7272
}
73+
74+
private void body_Loaded(object sender, System.Windows.RoutedEventArgs e)
75+
{
76+
var textBox = (PromptTextBox)sender;
77+
textBox.SelectAll();
78+
}
7379
}
7480
}

0 commit comments

Comments
 (0)