fix readonly edit

This commit is contained in:
lixianjing 2019-06-28 02:13:08 -07:00
parent 5e2630e6ad
commit 57a4e4b5d5

View File

@ -437,6 +437,7 @@ ret_t edit_on_event(widget_t* widget, event_t* e) {
return_value_if_fail(widget != NULL && edit != NULL, RET_BAD_PARAMS);
if (edit->readonly) {
text_edit_set_cursor(edit->model, 0xffffffff);
return RET_OK;
}