aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-11-06 14:46:39 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-11-06 14:46:39 +0000
commit9bbe9c78394e0298be68f743f18b8e9aad4d0e3c (patch)
treedda65a8357bd36ddc1cabced61ec3b61039da81c /src
parent-m pressing a key like "i" will take you to "images" and "C" takes you to "Co... (diff)
downloadenlightenment-9bbe9c78394e0298be68f743f18b8e9aad4d0e3c.tar.gz
- bind BackSpace to go back 1 dir
SVN revision: 18346
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_fileman_smart.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/bin/e_fileman_smart.c b/src/bin/e_fileman_smart.c
index d583fabe7..b4f0e0215 100644
--- a/src/bin/e_fileman_smart.c
+++ b/src/bin/e_fileman_smart.c
@@ -2595,7 +2595,7 @@ _e_fm_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
E_Fm_Smart_Data *sd;
ev = event_info;
- sd = data;
+ sd = data;
if (!strcmp(ev->keyname, "Up"))
_e_fm_icon_select_up(sd);
@@ -2607,6 +2607,19 @@ _e_fm_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
_e_fm_icon_select_right(sd);
else if (!strcmp(ev->keyname, "Return"))
_e_fm_icon_run(sd);
+ else if (!strcmp(ev->keyname, "BackSpace"))
+ {
+ char *fullname;
+
+ fullname = _e_fm_dir_pop(sd->dir);
+ if (fullname)
+ {
+ if (sd->win)
+ e_win_title_set(sd->win, fullname);
+ _e_fm_dir_set(sd, fullname);
+ free(fullname);
+ }
+ }
else if(strlen(ev->keyname) == 1)
_e_fm_icon_goto_key(sd, ev->string);
}