Enlightenment CVS committal
Author : codewarrior
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_fileman_smart.c
Log Message:
- bind BackSpace to go back 1 dir
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- e_fileman_smart.c 6 Nov 2005 14:40:58 -0000 1.91
+++ e_fileman_smart.c 6 Nov 2005 14:46:39 -0000 1.92
@@ -2595,7 +2595,7 @@
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_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);
}
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs