mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve edit readonly
This commit is contained in:
parent
dd9729be13
commit
21f618e223
@ -2,6 +2,7 @@
|
||||
|
||||
2022/05/24
|
||||
* 完善 svg image
|
||||
* 完善 edit 对 readonly 的处理(感谢雨欣提供补丁)
|
||||
|
||||
2022/05/23
|
||||
* 完善demoui,删除无用代码(感谢兆坤提供补丁)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user