feat: spellcheck input (#6446)
Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl> Reviewed-by: pajlada <rasmus.karlsson@pajlada.com> Reviewed-by: fourtf <tf.four@gmail.com>
This commit is contained in:
@@ -145,6 +145,7 @@ void Paths::initSubDirectories()
|
||||
this->pluginsDirectory = makePath("Plugins");
|
||||
this->themesDirectory = makePath("Themes");
|
||||
this->crashdumpDirectory = makePath("Crashes");
|
||||
this->dictionariesDirectory = makePath("Dictionaries");
|
||||
#ifdef Q_OS_WIN
|
||||
this->ipcDirectory = makePath("IPC");
|
||||
#else
|
||||
|
||||
@@ -39,6 +39,9 @@ public:
|
||||
// Custom themes live here. <appDataDirectory>/Themes
|
||||
QString themesDirectory;
|
||||
|
||||
// Spell checking dictionaries <appDataDirectory>/Dictionaries
|
||||
QString dictionariesDirectory;
|
||||
|
||||
// Directory for shared memory files.
|
||||
// <appDataDirectory>/IPC on Windows
|
||||
// /tmp elsewhere
|
||||
|
||||
@@ -353,6 +353,9 @@ public:
|
||||
false,
|
||||
};
|
||||
|
||||
BoolSetting enableSpellChecking = {"/behaviour/spellChecking/enabled",
|
||||
false};
|
||||
|
||||
FloatSetting pauseOnHoverDuration = {"/behaviour/pauseOnHoverDuration", 0};
|
||||
EnumSetting<Qt::KeyboardModifier> pauseChatModifier = {
|
||||
"/behaviour/pauseChatModifier", Qt::KeyboardModifier::NoModifier};
|
||||
|
||||
@@ -681,6 +681,12 @@ void WindowManager::encodeNodeRecursively(SplitNode *node, QJsonObject &obj)
|
||||
QJsonArray filters;
|
||||
WindowManager::encodeFilters(node->getSplit(), filters);
|
||||
obj.insert("filters", filters);
|
||||
|
||||
auto spellOverride = node->getSplit()->checkSpellingOverride();
|
||||
if (spellOverride)
|
||||
{
|
||||
obj["checkSpelling"] = *spellOverride;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SplitNode::Type::HorizontalContainer:
|
||||
|
||||
Reference in New Issue
Block a user