Skip to content

Commit

Permalink
Fixes #1114: Shortcut hotkeys stop working cuz of focus issue in "Son…
Browse files Browse the repository at this point in the history
…gs" tab
  • Loading branch information
Digimezzo Raphaël committed Jun 17, 2020
1 parent 26a9d86 commit 0397d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dopamine/Views/Shell.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,12 @@ private void Window_KeyDown(object sender, KeyEventArgs e)
}
else if (e.Key == Key.Left)
{
e.Handled = true; // Prevents grid focus stealing
this.playbackService.SkipSeconds(Convert.ToInt32(-5));
}
else if (e.Key == Key.Right)
{
e.Handled = true; // Prevents grid focus stealing
this.playbackService.SkipSeconds(Convert.ToInt32(5));
}
}
Expand All @@ -506,10 +508,12 @@ private void Window_KeyDown(object sender, KeyEventArgs e)
}
else if (e.Key == Key.Left)
{
e.Handled = true; // Prevents grid focus stealing
this.playbackService.SkipSeconds(Convert.ToInt32(-15));
}
else if (e.Key == Key.Right)
{
e.Handled = true; // Prevents grid focus stealing
this.playbackService.SkipSeconds(Convert.ToInt32(15));
}
}
Expand Down

0 comments on commit 0397d48

Please sign in to comment.