diff --git a/NEWS b/NEWS index 0b42a35e0..dd33be7a4 100644 --- a/NEWS +++ b/NEWS @@ -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() diff --git a/library/Core.cpp b/library/Core.cpp index 29644f535..65c87b292 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -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'; }