efm add keybindings:
- ctrl+h toggle show hidden files - ctrl+1 icon view - ctrl+2 list view - ctrl+3 custom grid view SVN revision: 56839
This commit is contained in:
parent
79742c3762
commit
8bf7b759a7
|
@ -6928,6 +6928,43 @@ _e_fm2_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event
|
|||
_e_fm2_file_paste(obj);
|
||||
return;
|
||||
}
|
||||
else if (!strcmp(ev->key, "h"))
|
||||
{
|
||||
if (sd->show_hidden_files)
|
||||
sd->show_hidden_files = EINA_FALSE;
|
||||
else
|
||||
sd->show_hidden_files = EINA_TRUE;
|
||||
sd->inherited_dir_props = EINA_FALSE;
|
||||
_e_fm2_refresh(data, NULL, NULL);
|
||||
return;
|
||||
}
|
||||
else if (!strcmp(ev->key, "1"))
|
||||
{
|
||||
if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_GRID_ICONS)
|
||||
return;
|
||||
sd->view_mode = E_FM2_VIEW_MODE_GRID_ICONS;
|
||||
sd->inherited_dir_props = EINA_FALSE;
|
||||
_e_fm2_refresh(sd, NULL, NULL);
|
||||
return;
|
||||
}
|
||||
else if (!strcmp(ev->key, "2"))
|
||||
{
|
||||
if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_LIST)
|
||||
return;
|
||||
sd->view_mode = E_FM2_VIEW_MODE_LIST;
|
||||
sd->inherited_dir_props = EINA_FALSE;
|
||||
_e_fm2_refresh(sd, NULL, NULL);
|
||||
return;
|
||||
}
|
||||
else if (!strcmp(ev->key, "3"))
|
||||
{
|
||||
if (_e_fm2_view_mode_get(sd) == E_FM2_VIEW_MODE_CUSTOM_ICONS)
|
||||
return;
|
||||
sd->view_mode = E_FM2_VIEW_MODE_CUSTOM_ICONS;
|
||||
sd->inherited_dir_props = EINA_FALSE;
|
||||
_e_fm2_refresh(sd, NULL, NULL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!strcmp(ev->key, "Left"))
|
||||
|
|
Loading…
Reference in New Issue