hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=2386e45e92380ae4fabc24e66ae2ab8ca5c15448

commit 2386e45e92380ae4fabc24e66ae2ab8ca5c15448
Author: ChunEon Park <[email protected]>
Date:   Sun Feb 22 22:26:12 2015 +0900

    bin/live_edit: allow backspace key to cancel the live edit mode
---
 src/bin/live_edit.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/live_edit.c b/src/bin/live_edit.c
index 1b2571a..d910ef3 100644
--- a/src/bin/live_edit.c
+++ b/src/bin/live_edit.c
@@ -104,8 +104,9 @@ key_down_cb(void *data, int type EINA_UNUSED, void *ev)
 
    if (!strcmp(event->key, "Return"))
      {
+        int type = CTXPOPUP_ITEMS[ld->part_info.type].type;
         enventor_object_template_part_insert(ld->enventor,
-                                             
CTXPOPUP_ITEMS[ld->part_info.type].type,
+                                             type,
                                              
ENVENTOR_TEMPLATE_INSERT_LIVE_EDIT,
                                              ld->part_info.rel1_x,
                                              ld->part_info.rel1_y,
@@ -114,7 +115,8 @@ key_down_cb(void *data, int type EINA_UNUSED, void *ev)
                                              NULL, 0);
         enventor_object_save(ld->enventor, config_edc_path_get());
      }
-   else if (strcmp(event->key, "Delete")) return EINA_TRUE;
+   else if (strcmp(event->key, "Delete") &&
+            strcmp(event->key, "BackSpace")) return EINA_TRUE;
 
    live_edit_cancel();
    return EINA_TRUE;

-- 


Reply via email to