]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
Whoops, fix some stupidity on my part, should work better.
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 02a3f8080b13986014b2967a38ee5aa28e3f4429..1e2801e2edfd72e92a3894c6e2a2e711dc19f206 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 #include "quakedef.h"
+#include <ctype.h>
 
 /*
 
@@ -515,7 +516,7 @@ int Key_StringToKeynum (const char *str)
        if (!str || !str[0])
                return -1;
        if (!str[1])
-               return str[0];
+               return tolower(str[0]);
 
        for (kn=keynames ; kn->name ; kn++)
                if (!strcasecmp(str,kn->name))