From 70b32fe523370e33dceb8fe7b257701c0581000e Mon Sep 17 00:00:00 2001 From: Clement Roblot Date: Fri, 2 Aug 2024 21:36:12 +0700 Subject: [PATCH] Cleaner code --- examples/component/input.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/component/input.cpp b/examples/component/input.cpp index aaa49cc..1a0bcaa 100644 --- a/examples/component/input.cpp +++ b/examples/component/input.cpp @@ -71,6 +71,10 @@ int main() { border | selected(selection, textToCopy); }); + // TODO: Make the textToCopy a callback called every times the selected text change + // TODO: Implement the double click on word to select the word + // TODO: Implement the double click and drag to select word by word (optional) + // TODO: Is there a way for me to embedd the catchEvent in the selected decorator? renderer |= CatchEvent([&](Event event) { if (event.is_mouse()) { @@ -83,10 +87,6 @@ int main() { selection.starty = mouse.y; selection.endx = mouse.x-1; selection.endy = mouse.y; - - // screen.PixelAt(mouse.x, mouse.y).blink = true; - // screen.PixelAt(mouse.x, mouse.y).character = "K"; - textToCopy += screen.PixelAt(mouse.x, mouse.y).character; } else if (mouse.motion == Mouse::Released) {