fixes to non-unicode build

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@280 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-21 21:09:17 +00:00
parent 61550b9e44
commit fe0f6838b8
4 changed files with 11 additions and 3 deletions
+5 -1
View File
@@ -199,7 +199,11 @@ bool TextValueEditor::onChar(wxKeyEvent& ev) {
// TODO: Find a more correct way to determine normal characters,
// this might not work for internationalized input.
// It might also not be portable!
replaceSelection(escape(String(ev.GetUnicodeKey(), 1)), _("Typing"));
#ifdef UNICODE
replaceSelection(escape(String(ev.GetUnicodeKey(), 1)), _("Typing"));
#else
replaceSelection(escape(String((Char)ev.GetKeyCode(), 1)), _("Typing"));
#endif
} else {
return false;
}