summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorChidambar Zinnoury <illogict@online.fr>2008-11-24 20:59:59 +0000
committerChidambar Zinnoury <illogict@online.fr>2008-11-24 20:59:59 +0000
commitb2e373702449fbe3c269eaae160b5d526299d405 (patch)
tree72ef6c2bfb75d9c3d3d5e5be59ae7373a4a46544 /src/bin/e_widget_toolbar.c
parent8087cda39d272fcb0f6c275c84ebc6a1b3db1323 (diff)
Add support for home and end keys to toolbar widget.
SVN revision: 37791
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index 7fba140..6c827c8 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -310,7 +310,31 @@ _e_wid_cb_key_down(void *data, Evas *evas, Evas_Object *obj, void *event_info)
310 } 310 }
311 } 311 }
312 } 312 }
313 if ((it) && (it2)) 313 else if ((!strcmp(ev->keyname, "Home")) || (!strcmp(ev->keyname, "KP_Home")))
314 {
315 for (l = wd->items; l; l = l->next)
316 {
317 it = l->data;
318 if (it->selected)
319 {
320 it2 = wd->items->data;
321 break;
322 }
323 }
324 }
325 else if ((!strcmp(ev->keyname, "End")) || (!strcmp(ev->keyname, "KP_End")))
326 {
327 for (l = wd->items; l; l = l->next)
328 {
329 it = l->data;
330 if (it->selected)
331 {
332 it2 = eina_list_last(wd->items)->data;
333 break;
334 }
335 }
336 }
337 if ((it) && (it2) && (it != it2))
314 { 338 {
315 it->selected = 0; 339 it->selected = 0;
316 edje_object_signal_emit(it->o_base, "e,state,unselected", "e"); 340 edje_object_signal_emit(it->o_base, "e,state,unselected", "e");