mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
update according to 0.3.1
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@686 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -456,12 +456,18 @@ void rtgui_server_handle_kbd(struct rtgui_event_kbd* event)
|
||||
panel = rtgui_server_focus_panel;
|
||||
if (panel != RT_NULL)
|
||||
{
|
||||
/* send to focus panel */
|
||||
event->wid = RT_NULL;
|
||||
rt_thread_t tid;
|
||||
|
||||
/* send keyboard event to thread */
|
||||
rtgui_thread_send(rtgui_panel_get_active_thread(panel),
|
||||
(struct rtgui_event*)event, sizeof(struct rtgui_event_kbd));
|
||||
/* get active thread in this panel */
|
||||
tid = rtgui_panel_get_active_thread(panel);
|
||||
if (tid != RT_NULL)
|
||||
{
|
||||
/* send to focus panel */
|
||||
event->wid = RT_NULL;
|
||||
|
||||
/* send keyboard event to thread */
|
||||
rtgui_thread_send(tid, (struct rtgui_event*)event, sizeof(struct rtgui_event_kbd));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user