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

Commit c50db4e

Browse files
committed
Give hint about how to edit PR diff files on status bar
1 parent b0f6f40 commit c50db4e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestDetailView.xaml.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,15 @@ void EnableNavigateToEditor(IWpfTextView textView, IPullRequestFileNode file)
252252
{
253253
textView.VisualElement.PreviewKeyDown += async (s, e) =>
254254
{
255-
await DoOpenLiveFile(file);
255+
if (e.Key == Key.Space)
256+
{
257+
await DoOpenLiveFile(file);
258+
}
259+
else
260+
{
261+
Services.Dte.StatusBar.Text = "Press space bar to open file in solution";
262+
}
263+
256264
e.Handled = true;
257265
};
258266
}

0 commit comments

Comments
 (0)