button: Check return value of _elm_config_key_binding_call.

This fixes severely broken focus movement.
This commit is contained in:
Daniel Juyung Seo 2014-03-22 16:25:34 +09:00
parent e2b6f3de71
commit ab71bc5750
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ _elm_button_elm_widget_event(Eo *obj, Elm_Button_Data *_pd EINA_UNUSED, Evas_Obj
if (type != EVAS_CALLBACK_KEY_DOWN) return EINA_FALSE;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE;
_elm_config_key_binding_call(obj, ev, key_actions);
if (!_elm_config_key_binding_call(obj, ev, key_actions))
return EINA_FALSE;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;