value "action" string: "activate";
value "params" string: "";
}
+ group "Elm_Config_Binding_Key" struct {
+ value "context" int: 0;
+ value "key" string: "Escape";
+ value "action" string: "escape";
+ value "params" string: "";
+ }
}
}
group "Elm_Config_Bindings_Widget" struct {
value "action" string: "activate";
value "params" string: "";
}
+ group "Elm_Config_Binding_Key" struct {
+ value "context" int: 0;
+ value "key" string: "Escape";
+ value "action" string: "escape";
+ value "params" string: "";
+ }
}
}
group "Elm_Config_Bindings_Widget" struct {
value "action" string: "activate";
value "params" string: "";
}
+ group "Elm_Config_Binding_Key" struct {
+ value "context" int: 0;
+ value "key" string: "Escape";
+ value "action" string: "escape";
+ value "params" string: "";
+ }
}
}
group "Elm_Config_Bindings_Widget" struct {
static Eina_Bool _key_action_move(Evas_Object *obj, const char *params);
static Eina_Bool _key_action_activate(Evas_Object *obj, const char *params);
+static Eina_Bool _key_action_escape(Evas_Object *obj, const char *params);
static const Elm_Action key_actions[] = {
{"move", _key_action_move},
{"activate", _key_action_activate},
+ {"escape", _key_action_escape},
{NULL, NULL}
};
return EINA_TRUE;
}
+static Eina_Bool
+_key_action_escape(Evas_Object *obj, const char *params EINA_UNUSED)
+{
+ elm_hoversel_hover_end(obj);
+ return EINA_TRUE;
+}
+
EOLIAN static Eina_Bool
_elm_hoversel_elm_widget_event(Eo *obj, Elm_Hoversel_Data *sd, Evas_Object *src, Evas_Callback_Type type, void *event_info)
{
{ "move,down", "move", "down", _key_action_move},
{ "move,left", "move", "left", _key_action_move},
{ "move,right", "move", "right", _key_action_move},
+ { "escape", "escape", NULL, _key_action_escape},
{ NULL, NULL, NULL, NULL}
};
return &atspi_actions[0];