format code

This commit is contained in:
xianjimli 2019-03-14 10:52:00 +08:00
parent cd9235c45b
commit aa602fa4dc
3 changed files with 3 additions and 3 deletions

View File

@ -2056,7 +2056,7 @@ bool_t widget_is_keyboard(widget_t* widget) {
return TRUE;
}
if(widget_get_prop(widget, WIDGET_PROP_IS_KEYBOARD, &v) == RET_OK) {
if (widget_get_prop(widget, WIDGET_PROP_IS_KEYBOARD, &v) == RET_OK) {
return value_bool(&v);
}

View File

@ -950,7 +950,7 @@ ret_t edit_set_focus(widget_t* widget, bool_t focus) {
edit->focus = focus;
widget->focused = focus;
if(focus) {
if (focus) {
event_t e = event_init(EVT_FOCUS, widget);
widget_dispatch(widget, &e);
} else {

View File

@ -160,7 +160,7 @@ typedef struct _edit_t {
*
*/
char* tips;
/**
* @property {char*} focus
* @annotation ["set_prop","get_prop","readable","persitent","design","scriptable"]