AWESOME.

Daniel Juyung Seo (SeoZ)
On Sep 3, 2012 11:03 PM, "Enlightenment SVN" <no-re...@enlightenment.org>
wrote:

> Log:
> probably the longest awaited feature in all of E17: escape key now closes
> the settings panel
>
>
> Author:       discomfitor
> Date:         2012-09-03 07:03:07 -0700 (Mon, 03 Sep 2012)
> New Revision: 76013
> Trac:         http://trac.enlightenment.org/e/changeset/76013
>
> Modified:
>   trunk/e/src/modules/conf/e_conf.c
>
> Modified: trunk/e/src/modules/conf/e_conf.c
> ===================================================================
> --- trunk/e/src/modules/conf/e_conf.c   2012-09-03 13:55:20 UTC (rev 76012)
> +++ trunk/e/src/modules/conf/e_conf.c   2012-09-03 14:03:07 UTC (rev 76013)
> @@ -166,6 +166,10 @@
>     kg = evas_object_key_grab(o, "KP_Enter", mask, ~mask, 0);
>     if (!kg)
>       fprintf(stderr, "ERROR: unable to redirect \"KP_Enter\" key events
> to object %p.\n", o);
> +   mask = 0;
> +   kg = evas_object_key_grab(o, "Escape", mask, ~mask, 0);
> +   if (!kg)
> +     fprintf(stderr, "ERROR: unable to redirect \"Escape\" key events to
> object %p.\n", o);
>     evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN,
>                                    _e_configure_keydown_cb, eco->win);
>
> @@ -452,6 +456,8 @@
>               e_widget_activate(o);
>            }
>       }
> +   else if (!strcmp(ev->keyname, "Escape"))
> +     e_widget_activate(eco->close);
>  }
>
>  static void
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to