{
Edje *ed = data;
_edje_emit(ed, "focus,in", "");
+ // FIXME: emit focus,in to selections and cursors
}
static void
{
Edje *ed = data;
_edje_emit(ed, "focus,out", "");
+ // FIXME: emit focus,out to selections and cursors
}
static void
Edje *ed = data;
Evas_Event_Key_Down *ev = event_info;
Edje_Real_Part *rp = ed->focused_part;
- Entry *en = rp->entry_data;
+ Entry *en;
Evas_Bool control, alt, shift;
- if ((!rp) || (!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
+ if (!rp) return;
+ en = rp->entry_data;
+ if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE))
return;
if (!ev->key) return;
shift = evas_key_modifier_is_set(ev->modifiers, "Shift");
if (!strcmp(ev->key, "Escape"))
{
- // dead keys here. Escape for now (shoudl emit these)
+ // dead keys here. Escape for now (should emit these)
}
else if (!strcmp(ev->key, "Up"))
{
Edje *ed = data;
Evas_Event_Key_Up *ev = event_info;
Edje_Real_Part *rp = ed->focused_part;
- Entry *en = rp->entry_data;
- if ((!rp) || (!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
+ Entry *en;
+ if (!rp) return;
+ en = rp->entry_data;
+ if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE))
return;
}
{
Edje_Real_Part *rp = data;
Evas_Event_Mouse_Down *ev = event_info;
- Entry *en = rp->entry_data;
+ Entry *en;
Evas_Coord x, y, w, h;
- if ((!rp) || (!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
+ if (!rp) return;
+ en = rp->entry_data;
+ if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE))
return;
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
{
Edje_Real_Part *rp = data;
Evas_Event_Mouse_Up *ev = event_info;
- Entry *en = rp->entry_data;
+ Entry *en;
Evas_Coord x, y, w, h;
- if ((!rp) || (!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
+ if (!rp) return;
+ en = rp->entry_data;
+ if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE))
return;
evas_object_geometry_get(rp->object, &x, &y, &w, &h);
{
Edje_Real_Part *rp = data;
Evas_Event_Mouse_Move *ev = event_info;
- Entry *en = rp->entry_data;
+ Entry *en;
Evas_Coord x, y, w, h;
- if ((!rp) || (!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
+ if (!rp) return;
+ en = rp->entry_data;
+ if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE))
return;
if (!en->sel_start) return;