feat: 'edited' property reset & add 'oncontrolkey' textbox callback

This commit is contained in:
MihailRis
2025-03-12 19:51:22 +03:00
parent fb18442322
commit 3a4b334d0b
14 changed files with 88 additions and 5 deletions
+7
View File
@@ -493,6 +493,13 @@ static std::shared_ptr<UINode> read_text_box(
reader.getFilename()
));
}
if (element.has("oncontrolkey")) {
textbox->setOnControlCombination(scripting::create_key_handler(
reader.getEnvironment(),
element.attr("oncontrolkey").getText(),
reader.getFilename()
));
}
if (auto onUpPressed = create_runnable(reader, element, "onup")) {
textbox->setOnUpPressed(onUpPressed);
}