improve edit readonly

This commit is contained in:
lixianjing 2022-05-24 17:06:10 +08:00
parent dd9729be13
commit 21f618e223
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2022/05/24
* 完善 svg image
* 完善 edit 对 readonly 的处理(感谢雨欣提供补丁)
2022/05/23
* 完善demoui删除无用代码(感谢兆坤提供补丁)

View File

@ -525,6 +525,10 @@ static ret_t edit_do_request_input_method(widget_t* widget) {
edit_t* edit = EDIT(widget);
input_method_t* im = input_method();
return_value_if_fail(edit != NULL, RET_BAD_PARAMS);
if (edit->readonly) {
return RET_OK;
}
input_method_request(im, widget);
if (edit->action_text != NULL) {
const char* action_text = locale_info_tr(widget_get_locale_info(widget), edit->action_text);