Fix an issue where Ctrl-*-A and Ctrl-*-Z keybindings were not properly detected

develop
lethosor 2015-07-29 09:34:04 -04:00
parent 825d46af51
commit f387eb2960
2 changed files with 2 additions and 1 deletions

@ -7,6 +7,7 @@ DFHack Future
More build information available in plugins
Fixed a rare overflow issue that could cause crashes on Linux and OS X
Stopped DF window from receiving input when unfocused on OS X
Fixed issues with keybindings involving Ctrl-A and Ctrl-Z
Lua
Scripts can be enabled with the built-in enable/disable commands
A new function, reqscript(), is available as a safer alternative to script_environment()

@ -1917,7 +1917,7 @@ int UnicodeAwareSym(const SDL::KeyboardEvent& ke)
}
// convert A-Z to their a-z counterparts:
if('A' < unicode && unicode < 'Z')
if('A' <= unicode && unicode <= 'Z')
{
unicode += 'a' - 'A';
}