From bb1a14cf8625c4fec85f42cd5dbed8c8c826afaa Mon Sep 17 00:00:00 2001 From: lixianjing Date: Fri, 11 Jun 2021 07:51:52 +0800 Subject: [PATCH] improve focus --- src/base/widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/widget.c b/src/base/widget.c index 35628cb4d..4f7c779a9 100644 --- a/src/base/widget.c +++ b/src/base/widget.c @@ -2452,7 +2452,7 @@ ret_t widget_on_keydown(widget_t* widget, key_event_t* e) { return_value_if_fail(widget != NULL && e != NULL, RET_BAD_PARAMS); if (widget_on_keydown_general(widget, e) == RET_STOP) { - return RET_OK; + return RET_STOP; } widget_ref(widget);