Skip to content

Commit

Permalink
Update shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Jul 30, 2020
1 parent 2f9a53b commit 47a29f0
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions PicView/Shortcuts/MainShortcuts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,51 @@ internal static void MainWindow_KeysDown(object sender, KeyEventArgs e)
return;

case Key.Up:
if (Properties.Settings.Default.ScrollEnabled)
if (GetPicGallery != null)
{
GetMainWindow.Scroller.ScrollToVerticalOffset(GetMainWindow.Scroller.VerticalOffset - 30);
if (GalleryFunctions.IsOpen)
{
if (Properties.Settings.Default.PicGallery == 1)
{
ScrollTo(true, ctrlDown);
return;
}
else if (ctrlDown)
{
Rotate(true);
}
else
{
Pic(false);
}
}
else if (ctrlDown)
{
Rotate(true);
}
}
else if (ctrlDown)
{
Rotate(false);
}
if (Properties.Settings.Default.ScrollEnabled)
{
GetMainWindow.Scroller.ScrollToVerticalOffset(GetMainWindow.Scroller.VerticalOffset - 30);
}
return;

case Key.W:
if (GetPicGallery != null)
{
if (GalleryFunctions.IsOpen)
{
if (Properties.Settings.Default.PicGallery == 1)
{
ScrollTo(true, ctrlDown);
return;
}
}
}
if (Properties.Settings.Default.ScrollEnabled)
{
GetMainWindow.Scroller.ScrollToVerticalOffset(GetMainWindow.Scroller.VerticalOffset - 30);
Expand Down

0 comments on commit 47a29f0

Please sign in to comment.