diff --git a/NAPS2.Lib/Config/InternalDefaults.cs b/NAPS2.Lib/Config/InternalDefaults.cs index 9c2c98757f..b411d43a8d 100644 --- a/NAPS2.Lib/Config/InternalDefaults.cs +++ b/NAPS2.Lib/Config/InternalDefaults.cs @@ -176,6 +176,7 @@ public static CommonConfig GetCommonConfig() => RotateRight = "Mod+Shift+Right", RotateFlip = "Mod+Shift+Down", RotateCustom = "", + RotateDeskew = "", MoveUp = "Mod+Up", MoveDown = "Mod+Down", ReorderInterleave = "", diff --git a/NAPS2.Lib/Config/KeyboardShortcuts.cs b/NAPS2.Lib/Config/KeyboardShortcuts.cs index 796b5f94e0..50c28e0ef8 100644 --- a/NAPS2.Lib/Config/KeyboardShortcuts.cs +++ b/NAPS2.Lib/Config/KeyboardShortcuts.cs @@ -56,6 +56,7 @@ public class KeyboardShortcuts public string? RotateLeft { get; set; } public string? RotateRight { get; set; } public string? RotateFlip { get; set; } + public string? RotateDeskew { get; set; } public string? RotateCustom { get; set; } public string? MoveUp { get; set; } diff --git a/NAPS2.Lib/EtoForms/Desktop/DesktopKeyboardShortcuts.cs b/NAPS2.Lib/EtoForms/Desktop/DesktopKeyboardShortcuts.cs index a1867372d2..cde799b681 100644 --- a/NAPS2.Lib/EtoForms/Desktop/DesktopKeyboardShortcuts.cs +++ b/NAPS2.Lib/EtoForms/Desktop/DesktopKeyboardShortcuts.cs @@ -77,6 +77,7 @@ public void Assign(DesktopCommands commands) _ksm.Assign(ks.ReorderReverseAll, commands.ReverseAll); _ksm.Assign(ks.ReorderReverseSelected, commands.ReverseSelected); _ksm.Assign(ks.RotateCustom, commands.CustomRotate); + _ksm.Assign(ks.RotateDeskew, commands.Deskew); _ksm.Assign(ks.RotateFlip, commands.Flip); _ksm.Assign(ks.RotateLeft, commands.RotateLeft); _ksm.Assign(ks.RotateRight, commands.RotateRight); diff --git a/NAPS2.Lib/EtoForms/Ui/KeyboardShortcutsForm.cs b/NAPS2.Lib/EtoForms/Ui/KeyboardShortcutsForm.cs index 7618203e8b..6216cea46d 100644 --- a/NAPS2.Lib/EtoForms/Ui/KeyboardShortcutsForm.cs +++ b/NAPS2.Lib/EtoForms/Ui/KeyboardShortcutsForm.cs @@ -63,6 +63,7 @@ public class KeyboardShortcutsForm : EtoDialogBase new(UiStrings.RotateLeft, c => c.KeyboardShortcuts.RotateLeft), new(UiStrings.RotateRight, c => c.KeyboardShortcuts.RotateRight), new(UiStrings.Flip, c => c.KeyboardShortcuts.RotateFlip), + new(UiStrings.Deskew, c => c.KeyboardShortcuts.RotateDeskew), new(UiStrings.CustomRotation, c => c.KeyboardShortcuts.RotateCustom), Shortcut.Separator, new(UiStrings.MoveUp, c => c.KeyboardShortcuts.MoveUp), diff --git a/NAPS2.Lib/EtoForms/Ui/PreviewForm.cs b/NAPS2.Lib/EtoForms/Ui/PreviewForm.cs index 28b769113d..c208f55835 100644 --- a/NAPS2.Lib/EtoForms/Ui/PreviewForm.cs +++ b/NAPS2.Lib/EtoForms/Ui/PreviewForm.cs @@ -357,6 +357,7 @@ private void AssignKeyboardShortcuts() _previewKsm.Assign(ks.ImageCombine, Commands.Combine); _previewKsm.Assign(ks.RotateCustom, Commands.CustomRotate); + _previewKsm.Assign(ks.RotateDeskew, Commands.Deskew); _previewKsm.Assign(ks.RotateFlip, Commands.Flip); _previewKsm.Assign(ks.RotateLeft, Commands.RotateLeft); _previewKsm.Assign(ks.RotateRight, Commands.RotateRight);