mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
[client] Block binding of the escape key
Id's binding of escape to togglemenu interfered with the hard-coding (want escape to togglemenu (or console as a fallback) no matter what). This idea was part of mercury's original design, too.
This commit is contained in:
parent
b0447c1cf1
commit
f36fa23666
2 changed files with 13 additions and 1 deletions
|
@ -30,6 +30,14 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "QF/cmd.h"
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/dstring.h"
|
||||
|
@ -63,6 +71,10 @@ cl_bind_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (strcasecmp (Cmd_Argv (1), "ESCAPE") == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(key = OK_TranslateKeyName (Cmd_Argv (1)))) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ typedef struct {
|
|||
} old_keyname_t;
|
||||
|
||||
old_keyname_t old_keynames[] = {
|
||||
{"ESCAPE", "key button 0x01"},
|
||||
//{"ESCAPE", "key button 0x01"}, binding not allowed
|
||||
{"1", "key button 0x02"},
|
||||
{"2", "key button 0x03"},
|
||||
{"3", "key button 0x04"},
|
||||
|
|
Loading…
Reference in a new issue