mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-15 10:13:48 +00:00
Added setting for spellchecking
This commit is contained in:
5 files changed
+14
-1
No files matched your search
@@ -31,4 +31,9 @@ public sealed class Data
|
||||
/// Shortcuts to send the input to the AI.
|
||||
/// </summary>
|
||||
public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.MODIFER_ENTER_IS_SENDING;
|
||||
|
||||
/// <summary>
|
||||
/// Should we enable spellchecking for all input fields?
|
||||
/// </summary>
|
||||
public bool EnableSpellchecking { get; set; }
|
||||
}
|
||||
@@ -121,4 +121,6 @@ public sealed class SettingsManager
|
||||
var settingsJson = JsonSerializer.Serialize(this.ConfigurationData);
|
||||
await File.WriteAllTextAsync(settingsPath, settingsJson);
|
||||
}
|
||||
|
||||
public void InjectSpellchecking(Dictionary<string, object?> attributes) => attributes["spellcheck"] = this.ConfigurationData.EnableSpellchecking ? "true" : "false";
|
||||
}
|
||||
Reference in new issue
Block a user