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:
parent
c129316a64
commit
86de812d51
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue