Skip to content

Commit

Permalink
XXXX - Fixed Alt + Arrow commands, now it triggers frame deletion again
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeManarin committed Jun 24, 2023
1 parent 0f5e655 commit 4604924
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ScreenToGif.Model/ScreenToGif.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<DebugType>embedded</DebugType>
<UseWPF>True</UseWPF>
<Platforms>AnyCPU;ARM64;x64;x86</Platforms>
<Version>2.38.0</Version>
<Version>2.38.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
2 changes: 1 addition & 1 deletion ScreenToGif.Native/ScreenToGif.Native.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWindowsForms>True</UseWindowsForms>
<DebugType>embedded</DebugType>
<Platforms>AnyCPU;ARM64;x64;x86</Platforms>
<Version>2.38.0</Version>
<Version>2.38.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
2 changes: 1 addition & 1 deletion ScreenToGif.Util/ScreenToGif.Util.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<UseWPF>True</UseWPF>
<DebugType>embedded</DebugType>
<Platforms>AnyCPU;ARM64;x64;x86</Platforms>
<Version>2.38.0</Version>
<Version>2.38.1</Version>
<!--<UseWindowsForms>True</UseWindowsForms>-->
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion ScreenToGif.ViewModel/ScreenToGif.ViewModel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>disable</Nullable>
<DebugType>embedded</DebugType>
<Platforms>AnyCPU;ARM64;x64;x86</Platforms>
<Version>2.38.0</Version>
<Version>2.38.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion ScreenToGif/ScreenToGif.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<Company>Nicke Manarin</Company>
<Authors>Nicke Manarin</Authors>
<Version>2.38.0</Version>
<Version>2.38.1</Version>
<Copyright>Copyright© Nicke Manarin 2023</Copyright>
<PackageProjectUrl>https://www.screentogif.com</PackageProjectUrl>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
Expand Down
16 changes: 12 additions & 4 deletions ScreenToGif/Windows/Editor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3034,8 +3034,12 @@ private void FrameListView_PreviewKeyDown(object sender, KeyEventArgs e)

case Key.Right:
{
NextFrame_Executed(sender, null);
e.Handled = true;
if ((Keyboard.Modifiers & ModifierKeys.Alt) == 0 || (Keyboard.Modifiers & (ModifierKeys.Alt | ModifierKeys.Control)) == (ModifierKeys.Alt | ModifierKeys.Control))
{
NextFrame_Executed(sender, null);
e.Handled = true;
}

break;
}

Expand All @@ -3048,8 +3052,12 @@ private void FrameListView_PreviewKeyDown(object sender, KeyEventArgs e)

case Key.Left:
{
PreviousFrame_Executed(sender, null);
e.Handled = true;
if ((Keyboard.Modifiers & ModifierKeys.Alt) == 0 || (Keyboard.Modifiers & (ModifierKeys.Alt | ModifierKeys.Control)) == (ModifierKeys.Alt | ModifierKeys.Control))
{
PreviousFrame_Executed(sender, null);
e.Handled = true;
}

break;
}

Expand Down
7 changes: 4 additions & 3 deletions ScreenToGif/Windows/Options.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1306,8 +1306,12 @@ private async void FfmpegImageCard_Click(object sender, RoutedEventArgs e)
return;
}

var url = Environment.Is64BitProcess ? "https://www.screentogif.com/downloads/FFmpeg-4.4.1-x64.zip" :
"https://www.screentogif.com/downloads/FFmpeg-4.3.1-x86.zip";

#if FULL_MULTI_MSIX_STORE
StatusBand.Warning(LocalizationHelper.Get("S.Options.Extras.DownloadRestriction"));
ProcessHelper.StartWithShell(url);
return;
#else
#region Save as
Expand Down Expand Up @@ -1364,9 +1368,6 @@ private async void FfmpegImageCard_Click(object sender, RoutedEventArgs e)
//Save to a temp folder.
var temp = Path.Combine(Path.GetTempPath(), Path.GetTempFileName());

var url = Environment.Is64BitProcess ? "https://www.screentogif.com/downloads/FFmpeg-4.4.1-x64.zip" :
"https://www.screentogif.com/downloads/FFmpeg-4.3.1-x86.zip";

using (var client = new WebClient { Proxy = WebHelper.GetProxy() })
await client.DownloadFileTaskAsync(new Uri(url), temp);

Expand Down

0 comments on commit 4604924

Please sign in to comment.