always stop passing key events on once they reach the lokker callback
This commit is contained in:
parent
7aea28a86b
commit
2eabf1142f
|
@ -675,7 +675,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
_lokker_caps_hint_update("");
|
_lokker_caps_hint_update("");
|
||||||
else
|
else
|
||||||
_lokker_caps_hint_update(_("Caps Lock is On"));
|
_lokker_caps_hint_update(_("Caps Lock is On"));
|
||||||
return (edd->state != LOKKER_STATE_CHECKING);
|
return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (edd->state == LOKKER_STATE_CHECKING) return ECORE_CALLBACK_DONE;
|
if (edd->state == LOKKER_STATE_CHECKING) return ECORE_CALLBACK_DONE;
|
||||||
|
@ -685,7 +685,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
if (edd->selected)
|
if (edd->selected)
|
||||||
{
|
{
|
||||||
_lokker_unselect();
|
_lokker_unselect();
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!strcmp(ev->key, "KP_Enter"))
|
else if (!strcmp(ev->key, "KP_Enter"))
|
||||||
|
@ -698,7 +698,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
{
|
{
|
||||||
_lokker_null();
|
_lokker_null();
|
||||||
_lokker_unselect();
|
_lokker_unselect();
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
_lokker_backspace();
|
_lokker_backspace();
|
||||||
}
|
}
|
||||||
|
@ -708,7 +708,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
{
|
{
|
||||||
_lokker_null();
|
_lokker_null();
|
||||||
_lokker_unselect();
|
_lokker_unselect();
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
_lokker_delete();
|
_lokker_delete();
|
||||||
}
|
}
|
||||||
|
@ -730,7 +730,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
|
|
||||||
for (c = ev->compose; c[0]; c++)
|
for (c = ev->compose; c[0]; c++)
|
||||||
{
|
{
|
||||||
if (!isdigit(c[0])) return ECORE_CALLBACK_RENEW;
|
if (!isdigit(c[0])) return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (edd->selected)
|
if (edd->selected)
|
||||||
|
@ -746,7 +746,7 @@ _lokker_cb_key_down(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
EINTERN Eina_Bool
|
EINTERN Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue