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

Commit fd9eab5

Browse files
Disabling automatic focus
1 parent a8df4e6 commit fd9eab5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/GitHub.VisualStudio.UI/Views/Documents/IssueishCommentView.xaml.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public partial class IssueishCommentView : UserControl
2222
public IssueishCommentView()
2323
{
2424
InitializeComponent();
25-
this.Loaded += CommentView_Loaded;
2625
bodyMarkdown.PreviewMouseWheel += ScrollViewerUtilities.FixMouseWheelScroll;
2726
DataContextChanged += HandleDataContextChanged;
2827
}
@@ -41,15 +40,6 @@ void DoOpenOnGitHub()
4140
}
4241
}
4342

44-
private void CommentView_Loaded(object sender, System.Windows.RoutedEventArgs e)
45-
{
46-
if (buttonPanel.IsVisible)
47-
{
48-
BringIntoView();
49-
body.Focus();
50-
}
51-
}
52-
5343
private void HandleDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
5444
{
5545
subscription?.Dispose();
@@ -74,14 +64,6 @@ private void ReplyPlaceholder_GotFocus(object sender, System.Windows.RoutedEvent
7464
}
7565
}
7666

77-
private void buttonPanel_IsVisibleChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
78-
{
79-
if (buttonPanel.IsVisible)
80-
{
81-
BringIntoView();
82-
}
83-
}
84-
8567
void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
8668
{
8769
Uri uri;

0 commit comments

Comments
 (0)