diff --git a/include/QF/keys.h b/include/QF/keys.h index 235e66489..ff67c62c6 100644 --- a/include/QF/keys.h +++ b/include/QF/keys.h @@ -414,6 +414,7 @@ typedef enum { } knum_t; typedef enum { + IMT_MENU, IMT_CONSOLE, IMT_MOD, IMT_DEMO, diff --git a/libs/video/targets/keys.c b/libs/video/targets/keys.c index 3f0dc055b..95c8b29d8 100644 --- a/libs/video/targets/keys.c +++ b/libs/video/targets/keys.c @@ -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 ();