diff --git a/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs b/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs new file mode 100644 index 00000000..7b482276 --- /dev/null +++ b/app/MindWork AI Studio/Tools/Rust/ShortcutValidationResult.cs @@ -0,0 +1,10 @@ +namespace AIStudio.Tools.Rust; + +/// +/// Result of validating a keyboard shortcut. +/// +/// Whether the shortcut syntax is valid. +/// Error message if not valid. +/// Whether the shortcut conflicts with another registered shortcut. +/// Description of the conflict, if any. +public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription); \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs b/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs index 156f9d2b..69c2b41d 100644 --- a/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs +++ b/app/MindWork AI Studio/Tools/Services/RustService.Shortcuts.cs @@ -137,13 +137,4 @@ public sealed partial class RustService return false; } } -} - -/// -/// Result of validating a keyboard shortcut. -/// -/// Whether the shortcut syntax is valid. -/// Error message if not valid. -/// Whether the shortcut conflicts with another registered shortcut. -/// Description of the conflict, if any. -public sealed record ShortcutValidationResult(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription); +} \ No newline at end of file