diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-09-03 14:03:07 +0000 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-09-03 14:03:07 +0000 |
commit | 4b971320e35ae05ee9e6965d13da35c85df29ee7 (patch) | |
tree | 3ca5451c94d3223717b7b9acd5a270de047e6da7 /src/modules/conf | |
parent | 5f90c2ab7010ea16825b3bd8b4ec31590921f077 (diff) | |
download | enlightenment-4b971320e35ae05ee9e6965d13da35c85df29ee7.tar.gz |
probably the longest awaited feature in all of E17: escape key now closes the settings panel
SVN revision: 76013
Diffstat (limited to 'src/modules/conf')
-rw-r--r-- | src/modules/conf/e_conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/conf/e_conf.c b/src/modules/conf/e_conf.c index ab8baa5f7f..d8c2003e95 100644 --- a/src/modules/conf/e_conf.c +++ b/src/modules/conf/e_conf.c @@ -166,6 +166,10 @@ e_configure_show(E_Container *con, const char *params) 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_configure_keydown_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSE e_widget_activate(o); } } + else if (!strcmp(ev->keyname, "Escape")) + e_widget_activate(eco->close); } static void |