aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-11-08 00:47:22 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-11-08 00:47:22 +0000
commit8bee59678aee852dac4ae7677d592c07c6fe4576 (patch)
tree0b29c055b395551526dbcdbc36b909b24ea8ce54 /src
parent- dont do anything if the regex failes to compile (diff)
downloadenlightenment-8bee59678aee852dac4ae7677d592c07c6fe4576.tar.gz
- if typebuffer is active, left / right should move cursor (no movement yet, but doesnt move selection any more)
- if typebuffer is active, up / down might do some sort of history scrolling, for now, they just close the typebuffer SVN revision: 18369
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_fileman_smart.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/bin/e_fileman_smart.c b/src/bin/e_fileman_smart.c
index 4c32279b3..290f6c228 100644
--- a/src/bin/e_fileman_smart.c
+++ b/src/bin/e_fileman_smart.c
@@ -2721,13 +2721,39 @@ _e_fm_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
sd = data;
if (!strcmp(ev->keyname, "Up"))
- _e_fm_icon_select_up(sd);
+ {
+ if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))
+ {
+ edje_object_signal_emit(sd->edje_obj, "typebuf_hide", "");
+ edje_object_part_text_set(sd->edje_obj, "text", "");
+ }
+ else
+ _e_fm_icon_select_up(sd);
+ }
else if (!strcmp(ev->keyname, "Down"))
- _e_fm_icon_select_down(sd);
+ {
+ if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))
+ {
+ edje_object_signal_emit(sd->edje_obj, "typebuf_hide", "");
+ edje_object_part_text_set(sd->edje_obj, "text", "");
+ }
+ else
+ _e_fm_icon_select_down(sd);
+ }
else if (!strcmp(ev->keyname, "Left"))
- _e_fm_icon_select_left(sd);
+ {
+ if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))
+ {}
+ else
+ _e_fm_icon_select_left(sd);
+ }
else if (!strcmp(ev->keyname, "Right"))
- _e_fm_icon_select_right(sd);
+ {
+ if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))
+ {}
+ else
+ _e_fm_icon_select_right(sd);
+ }
else if (!strcmp(ev->keyname, "Escape"))
{
if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))