summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2014-03-24 15:57:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-24 15:57:43 +0900
commita9a45859112e1419634cda5815c5b7cacf90f29e (patch)
treed9b51dfd354614d4d39f1e99f6d01ac16aa9051e
parent844392da17219d53619fbe2518985391688ee388 (diff)
panel: check _elm_config_key_binding_call return value
Summary: If _elm_config_key_binding_call fails, return smart_event. @fix Test Plan: None Reviewers: seoz, Hermet, raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D654
-rw-r--r--src/lib/elm_panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c
index 7dd70bac1..bb0e5c43b 100644
--- a/src/lib/elm_panel.c
+++ b/src/lib/elm_panel.c
@@ -276,7 +276,8 @@ _elm_panel_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
276 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return; 276 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
277 if (src != obj) return; 277 if (src != obj) return;
278 278
279 _elm_config_key_binding_call(obj, ev, key_actions); 279 if (!_elm_config_key_binding_call(obj, ev, key_actions))
280 return EINA_FALSE;
280 281
281 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD; 282 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
282 if (ret) *ret = EINA_TRUE; 283 if (ret) *ret = EINA_TRUE;