예제 #1
0
파일: editmenu.c 프로젝트: ilia-maslakov/mc
int
edit_drop_hotkey_menu (WEdit * e, int key)
{
    int m = 0;
    switch (key)
    {
    case ALT ('f'):
        m = 0;
        break;
    case ALT ('e'):
        m = 1;
        break;
    case ALT ('s'):
        m = 2;
        break;
    case ALT ('c'):
        m = 3;
        break;
    case ALT ('m'):
        m = 4;
        break;
    case ALT ('o'):
        m = 5;
        break;
    default:
        return 0;
    }

    edit_drop_menu_cmd (e, m);
    return 1;
}
int edit_drop_hotkey_menu (WEdit * e, int key)
{
    int m = 0;
    switch (key) {
    case ALT ('f'):
	if (edit_key_emulation == EDIT_KEY_EMULATION_EMACS)
	    return 0;
	m = 0;
	break;
    case ALT ('e'):
	m = 1;
	break;
    case ALT ('s'):
	m = 2;
	break;
    case ALT ('c'):
	m = 3;
	break;
    case ALT ('o'):
	m = 4;
	break;
    default:
	return 0;
    }

    edit_drop_menu_cmd (e, m);
    return 1;
}
예제 #3
0
파일: editmenu.c 프로젝트: ilia-maslakov/mc
void
edit_menu_cmd (WEdit * e)
{
    edit_drop_menu_cmd (e, -1);
}