debug: add text selection to the example project to test changes

This commit is contained in:
Rustam Gamidov 2020-04-09 08:52:25 +03:00
parent e6b7670e97
commit 9c391068d7
No known key found for this signature in database
GPG Key ID: 093B162FB3DE6996
1 changed files with 3 additions and 1 deletions

View File

@ -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)