Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a7a8f599 in mainline


Ignore:
Timestamp:
2021-09-27T17:28:49Z (4 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
8603145
Parents:
448c448
Message:

Activate text entry in file / prompt dialog

So the user can immediately start typing. Especially useful when
mouse is not available since we cannot activate unsing keyboard yet.

Location:
uspace/lib/ui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/ui/entry.h

    r448c448 ra7a8f599  
    5454extern const char *ui_entry_get_text(ui_entry_t *);
    5555extern errno_t ui_entry_paint(ui_entry_t *);
     56extern void ui_entry_activate(ui_entry_t *);
     57extern void ui_entry_deactivate(ui_entry_t *);
    5658extern void ui_entry_backspace(ui_entry_t *);
    5759extern void ui_entry_delete(ui_entry_t *);
  • uspace/lib/ui/private/entry.h

    r448c448 ra7a8f599  
    9999extern size_t ui_entry_find_pos(ui_entry_t *, gfx_coord2_t *);
    100100extern void ui_entry_delete_sel(ui_entry_t *);
    101 extern void ui_entry_activate(ui_entry_t *);
    102 extern void ui_entry_deactivate(ui_entry_t *);
    103101extern void ui_entry_scroll_update(ui_entry_t *, bool);
    104102
  • uspace/lib/ui/src/filedialog.c

    r448c448 ra7a8f599  
    179179        if (rc != EOK)
    180180                goto error;
     181
     182        ui_entry_activate(entry);
    181183
    182184        dialog->ename = entry;
  • uspace/lib/ui/src/promptdialog.c

    r448c448 ra7a8f599  
    179179        if (rc != EOK)
    180180                goto error;
     181
     182        ui_entry_activate(entry);
    181183
    182184        dialog->ename = entry;
Note: See TracChangeset for help on using the changeset viewer.