BOOL ssd_widget_on_key_pressed( SsdWidget w, const char* utf8char, uint32_t flags) { SsdWidget child; if(w->key_pressed && w->key_pressed( w, utf8char, flags)) return TRUE; child = w->children; while( child) { if( ssd_widget_on_key_pressed( child, utf8char, flags)) return TRUE; child = child->next; } return FALSE; }
static BOOL on_key( void* context, const char* utf8char, uint32_t flags) { SsdWidget editbox = ssd_widget_get( s_dialog, s_editbox_name); return editbox->key_pressed( editbox, utf8char, flags); }