diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-11-30 23:14:43 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-11-30 23:14:43 +0000 |
commit | 703f186705a88c055d0fac067975b3672dc95365 (patch) | |
tree | fffa6fe28e7d2544d7fdf0146fc9addf14a7bfb1 | |
parent | 6af2d4ec1530d1ada1c56442ac1ee13cff451282 (diff) | |
download | imv-703f186705a88c055d0fac067975b3672dc95365.tar.gz |
Fix key name handling bug
-rw-r--r-- | src/binds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binds.c b/src/binds.c index 94f4d7c..1649537 100644 --- a/src/binds.c +++ b/src/binds.c @@ -202,7 +202,7 @@ static int print_event(char *buf, size_t len, const SDL_Event *event) keyname = "LeftSquareBracket"; } else if(!strcmp(keyname, "]")) { keyname = "RightSquareBracket"; - } else if(isalpha(*keyname)) { + } else if(strlen(keyname) == 1 && isalpha(*keyname)) { singlekey[0] = tolower(*keyname); keyname = &singlekey[0]; } |