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.
This commit is contained in:
ChunEon Park 2015-03-01 18:52:36 +09:00
parent c129316a64
commit 86de812d51
1 changed files with 6 additions and 0 deletions

View File

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