From 9c391068d76f215c40b3fbab77ece872527ac263 Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Thu, 9 Apr 2020 08:52:25 +0300 Subject: [PATCH] debug: add text selection to the example project to test changes --- examples/controlgallery/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/controlgallery/main.c b/examples/controlgallery/main.c index 526eefd3..6bbbf780 100644 --- a/examples/controlgallery/main.c +++ b/examples/controlgallery/main.c @@ -20,8 +20,10 @@ static int onShouldQuit(void *data) static uiEntry *focusable = NULL; static void wideOnClicked(uiButton *b, void *data) { - if (focusable) + if (focusable) { uiControlSetFocus(uiControl(focusable)); + uiEntrySelectAllText(focusable); + } } static uiControl *makeBasicControlsPage(void)