fix edit_on_key_down

This commit is contained in:
xianjimli 2018-08-23 16:11:36 +08:00
parent 23d75f6eff
commit 5be8540e05

View File

@ -258,7 +258,7 @@ static ret_t edit_on_key_down(widget_t* widget, key_event_t* e) {
} else if (key == FKEY_DELETE) {
return edit_delete_next_char(widget);
} else {
if (isprint(key) && system_info()->app_type != APP_DESKTOP) {
if (system_info()->app_type != APP_DESKTOP && isprint(key)) {
return edit_input_char(widget, (wchar_t)key);
} else {
return RET_OK;