From cc5045d6df4c055aed793719fb4c1a04a2296420 Mon Sep 17 00:00:00 2001 From: lethosor Date: Wed, 29 Jul 2015 10:32:19 -0400 Subject: [PATCH] Fix Alt-E/U/N bindings on OS X --- NEWS | 2 +- library/Core.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index dd33be7a4..8a3d81c4e 100644 --- a/NEWS +++ b/NEWS @@ -7,7 +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 + Fixed issues with keybindings involving Ctrl-A and Ctrl-Z, as well as Alt-E/U/N on OS X 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 65c87b292..62b63411f 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -1963,7 +1963,7 @@ int Core::DFH_SDL_Event(SDL::Event* ev) // Use unicode so Windows gives the correct value for the // user's Input Language - if((ke->ksym.unicode & 0xff80) == 0) + if(ke->ksym.unicode && ((ke->ksym.unicode & 0xff80) == 0)) { int key = UnicodeAwareSym(*ke); SelectHotkey(key, modstate);