From 86de812d51aa540358fe5b5638fb91274b32ea01 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sun, 1 Mar 2015 18:52:36 +0900 Subject: [PATCH] lib/edc_editor: stable redo, undo seems fd handler is broken.. (suspect ecore audio..) so key down events happened multiple times, here workaround code is for stable enventor. and should be removed later. --- src/lib/edc_editor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/edc_editor.c b/src/lib/edc_editor.c index 04fb622..a5425f6 100644 --- a/src/lib/edc_editor.c +++ b/src/lib/edc_editor.c @@ -645,6 +645,12 @@ key_down_cb(void *data, int type EINA_UNUSED, void *ev) Ecore_Event_Key *event = ev; edit_data *ed = data; + /* FIXME: seems event fd handler is broken. so key down event + is triggered multiple times, to make enventor stable, + we put the workaround code here. please remove if this won't + be problem anymore */ + if (event->timestamp == 0) return ECORE_CALLBACK_PASS_ON; + //Control Key if (!strcmp("Control_L", event->key)) {