From 5f15800574c680b40ca498f9da72d28197e87c58 Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 13 Dec 2023 18:41:39 -0500 Subject: [PATCH] Add Ctrl+Enter shortcut for Generate Image --- CHANGELOG.md | 1 + .../Views/Inference/InferenceImageToImageView.axaml | 2 ++ .../Views/Inference/InferenceImageUpscaleView.axaml | 2 ++ .../Views/Inference/InferenceTextToImageView.axaml | 2 ++ 4 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f21021b..0358fc5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2 - Addons usually affect guidance like ControlNet, T2I, FreeU, and other addons to come. They apply to the individual sampler, so you can mix and match different ControlNets for Base and Hires Fix, or use the current output from a previous sampler as ControlNet guidance image for HighRes passes. - Added SD Turbo Scheduler - Added display names for new samplers ("Heun++ 2", "DDPM", "LCM") +- Added Ctrl+Enter as a shortcut for the Generate Image button #### Accounts Settings Subpage - Lykos Account sign-up and login - currently for Patreon OAuth connections but GitHub requests caching and settings sync are planned - Supporters can now connect your Patreon accounts, then head to the Updates page to choose to receive auto-updates from the Dev or Preview channels diff --git a/StabilityMatrix.Avalonia/Views/Inference/InferenceImageToImageView.axaml b/StabilityMatrix.Avalonia/Views/Inference/InferenceImageToImageView.axaml index ac95b02b..9def61c9 100644 --- a/StabilityMatrix.Avalonia/Views/Inference/InferenceImageToImageView.axaml +++ b/StabilityMatrix.Avalonia/Views/Inference/InferenceImageToImageView.axaml @@ -149,6 +149,8 @@ Width="130" HorizontalAlignment="Stretch" Classes="accent" + ToolTip.Tip="{Binding $self.HotKey}" + HotKey="Ctrl+Enter" Command="{Binding GenerateImageCommand}" CommandParameter="{x:Static modelsInference:GenerateFlags.None}" IsVisible="{Binding !GenerateImageCommand.CanBeCanceled}"> diff --git a/StabilityMatrix.Avalonia/Views/Inference/InferenceImageUpscaleView.axaml b/StabilityMatrix.Avalonia/Views/Inference/InferenceImageUpscaleView.axaml index 3fda0804..43774e77 100644 --- a/StabilityMatrix.Avalonia/Views/Inference/InferenceImageUpscaleView.axaml +++ b/StabilityMatrix.Avalonia/Views/Inference/InferenceImageUpscaleView.axaml @@ -98,6 +98,8 @@ Width="130" HorizontalAlignment="Stretch" Classes="accent" + HotKey="Ctrl+Enter" + ToolTip.Tip="{Binding $self.HotKey}" Command="{Binding GenerateImageCommand}" CommandParameter="{x:Static modelsInference:GenerateFlags.None}" IsVisible="{Binding !GenerateImageCommand.CanBeCanceled}"> diff --git a/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml b/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml index bba97d30..a248c043 100644 --- a/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml +++ b/StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml @@ -112,6 +112,8 @@ HorizontalAlignment="Stretch" Classes="accent" Command="{Binding GenerateImageCommand}" + ToolTip.Tip="{Binding $self.HotKey}" + HotKey="Ctrl+Enter" CommandParameter="{x:Static modelsInference:GenerateFlags.None}" IsVisible="{Binding !GenerateImageCommand.CanBeCanceled}">