hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=86de812d51aa540358fe5b5638fb91274b32ea01

commit 86de812d51aa540358fe5b5638fb91274b32ea01
Author: ChunEon Park <[email protected]>
Date:   Sun Mar 1 18:52:36 2015 +0900

    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))
      {

-- 


Reply via email to