* main.c (midnight_callback): Ctrl-space calculates the size of

the currently selected directory entry. This is mostly useful for
	directories.
This commit is contained in:
Roland Illig 2005-09-06 11:38:45 +00:00
parent 009400124c
commit 689ee9f8ae
2 changed files with 5 additions and 7 deletions

View File

@ -4,8 +4,9 @@
the currently selected panel entry and moves down. Suggested by
ForestCreature on mc-devel.
* cmd.h: Likewise.
* main.c (midnight_callback): When the space key is pressed and
the command line is empty, single_dirsize_cmd() is called.
* main.c (midnight_callback): Ctrl-space calculates the size of
the currently selected directory entry. This is mostly useful for
directories.
2005-09-05 Roland Illig <roland.illig@gmx.de>

View File

@ -1256,6 +1256,8 @@ static const key_map default_map[] = {
{KEY_F (19), menu_last_selected_cmd},
{KEY_F (20), quiet_quit_cmd},
{XCTRL ('@'), single_dirsize_cmd},
/* Copy useful information to the command line */
{ALT ('a'), copy_current_pathname},
{ALT ('A'), copy_other_pathname},
@ -1543,11 +1545,6 @@ midnight_callback (struct Dlg_head *h, dlg_msg_t msg, int parm)
reverse_selection_cmd ();
return MSG_HANDLED;
}
if (parm == ' ') {
single_dirsize_cmd ();
return MSG_HANDLED;
}
}
}
return MSG_NOT_HANDLED;