Create a new imt_menu imt.

It seems to work nicely as F10 no longer tries to quit while the menu is
displayed.
This commit is contained in:
Bill Currie 2013-01-13 18:19:00 +09:00
parent b18305351e
commit e3b8157469
2 changed files with 5 additions and 1 deletions

View file

@ -414,6 +414,7 @@ typedef enum {
} knum_t;
typedef enum {
IMT_MENU,
IMT_CONSOLE,
IMT_MOD,
IMT_DEMO,

View file

@ -78,6 +78,7 @@ typedef struct {
} imtname_t;
imtname_t imtnames[] = {
{"IMT_MENU", IMT_MENU},
{"IMT_CONSOLE", IMT_CONSOLE},
{"IMT_MOD", IMT_MOD},
{"IMT_DEMO", IMT_DEMO},
@ -1034,9 +1035,11 @@ Key_SetKeyDest(keydest_t kd)
break;
case key_console:
case key_message:
case key_menu:
key_target = IMT_CONSOLE;
break;
case key_menu:
key_target = IMT_MENU;
break;
}
if (key_dest_callback)
key_dest_callback ();