fix behavior of up/down keys in efm when typebuf is visible

SVN revision: 83560
This commit is contained in:
Mike Blumenkrantz 2013-02-01 12:39:39 +00:00
parent 907d4fa211
commit aa0e82dda6
3 changed files with 4 additions and 12 deletions

View File

@ -6,6 +6,7 @@
* binding dialogs now reload the default config from file when reset defaults is clicked
* fixed leak in profile list dbus method
* binding dialogs are now able to reset bindings to the system profile file bindings
* fixed behavior of Up/Down keys in filemanager when typebuf was visible
2013-01-31 Mike Blumenkrantz

1
NEWS
View File

@ -135,3 +135,4 @@ Fixes:
* filemanager now ignores changes to .part files
* fixed bugs where keyboard layouts could not be applied or selected
* fixed leak in profile list dbus method
* fixed behavior of Up/Down keys in filemanager when typebuf was visible

View File

@ -7730,24 +7730,14 @@ _e_fm2_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event
}
else if (!strcmp(ev->key, "Up"))
{
if (sd->typebuf_visible)
/* FIXME: icon mode, typebuf extras */
/* is there a way to use this atm? */
// _e_fm2_typebuf_history_prev(obj);
_e_fm2_typebuf_match(obj, -1);
else if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_LIST)
if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_LIST)
_e_fm2_icon_sel_prev(obj, evas_key_modifier_is_set(ev->modifiers, "Shift"));
else
_e_fm2_icon_sel_up(obj, evas_key_modifier_is_set(ev->modifiers, "Shift"));
}
else if (!strcmp(ev->key, "Down"))
{
if (sd->typebuf_visible)
/* FIXME: icon mode, typebuf extras */
/* is there a way to use this? */
//_e_fm2_typebuf_history_next(obj);
_e_fm2_typebuf_match(obj, 1);
else if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_LIST)
if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_LIST)
_e_fm2_icon_sel_next(obj, evas_key_modifier_is_set(ev->modifiers, "Shift"));
else
_e_fm2_icon_sel_down(obj, evas_key_modifier_is_set(ev->modifiers, "Shift"));