Fix Alt-E/U/N bindings on OS X

develop
lethosor 2015-07-29 10:32:19 -04:00
parent f387eb2960
commit cc5045d6df
2 changed files with 2 additions and 2 deletions

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

@ -1963,7 +1963,7 @@ int Core::DFH_SDL_Event(SDL::Event* ev)
// Use unicode so Windows gives the correct value for the // Use unicode so Windows gives the correct value for the
// user's Input Language // user's Input Language
if((ke->ksym.unicode & 0xff80) == 0) if(ke->ksym.unicode && ((ke->ksym.unicode & 0xff80) == 0))
{ {
int key = UnicodeAwareSym(*ke); int key = UnicodeAwareSym(*ke);
SelectHotkey(key, modstate); SelectHotkey(key, modstate);