eekboard: react to key events by default.

This commit is contained in:
Daiki Ueno
2010-08-11 17:36:33 +09:00
parent 3d5160455a
commit 8bc7b754bc
4 changed files with 114 additions and 93 deletions

View File

@ -514,13 +514,15 @@ eek_keyboard_find_section_by_position (EekKeyboard *keyboard,
{
EekBounds bounds;
EekPoint point;
EekElement *element;
eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds);
point.x = x - bounds.x;
point.y = y - bounds.y;
return eek_container_find (EEK_CONTAINER(keyboard),
compare_section_by_position,
&point);
element = eek_container_find (EEK_CONTAINER(keyboard),
compare_section_by_position,
&point);
return EEK_SECTION(element);
}
EekKey *