We can act on the screen

This commit is contained in:
Clement Roblot
2024-08-27 17:40:48 +07:00
committed by ArthurSonzogni
parent 1325256aa9
commit cb2436f13f
4 changed files with 20 additions and 9 deletions

View File

@@ -55,6 +55,9 @@ int main() {
// Tweak how the component tree is rendered:
auto renderer = Renderer(component, [&] {
textToCopy = screen.getSelection();
return vbox({
hbox(text(" First name : "), input_first_name->Render()),
hbox(text(" Last name : ") | selectable(), input_last_name->Render()),