add 'keep-line-selection' textbox attribute

This commit is contained in:
MihailRis
2025-11-15 14:28:20 +03:00
parent fbc9ceece4
commit aba18ef836
3 changed files with 56 additions and 37 deletions
+5
View File
@@ -573,6 +573,11 @@ static std::shared_ptr<UINode> read_text_box(
if (element.has("line-numbers")) {
textbox->setShowLineNumbers(element.attr("line-numbers").asBool());
}
if (element.has("keep-line-selection")) {
textbox->setKeepLineSelection(
element.attr("keep-line-selection").asBool()
);
}
if (element.has("markup")) {
textbox->setMarkup(element.attr("markup").getText());
}