mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
fix button hide bug.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@897 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -86,6 +86,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_widget* widget, struct rtgui_e
|
|||||||
{
|
{
|
||||||
struct rtgui_event_kbd* ekbd = (struct rtgui_event_kbd*) event;
|
struct rtgui_event_kbd* ekbd = (struct rtgui_event_kbd*) event;
|
||||||
|
|
||||||
|
if (RTGUI_WIDGET_IS_HIDE(widget)) RT_FALSE;
|
||||||
if ((ekbd->key == RTGUIK_RETURN) || (ekbd->key == RTGUIK_SPACE))
|
if ((ekbd->key == RTGUIK_RETURN) || (ekbd->key == RTGUIK_SPACE))
|
||||||
{
|
{
|
||||||
if (RTGUI_KBD_IS_DOWN(ekbd))
|
if (RTGUI_KBD_IS_DOWN(ekbd))
|
||||||
@@ -110,6 +111,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_widget* widget, struct rtgui_e
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case RTGUI_EVENT_MOUSE_BUTTON:
|
case RTGUI_EVENT_MOUSE_BUTTON:
|
||||||
|
if (RTGUI_WIDGET_IS_HIDE(widget)) RT_FALSE;
|
||||||
{
|
{
|
||||||
struct rtgui_event_mouse* emouse = (struct rtgui_event_mouse*)event;
|
struct rtgui_event_mouse* emouse = (struct rtgui_event_mouse*)event;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user