diff options
author | Alexander Kuznetsov <kuzsasha@gmail.com> | 2011-10-22 07:14:19 +0400 |
---|---|---|
committer | Alexander Kuznetsov <kuzsasha@gmail.com> | 2011-10-22 07:14:19 +0400 |
commit | be61044eee235c979b7e291f95330a6017074143 (patch) | |
tree | 58959c13a63bf196e9d057e4a4ed919a7ddf95d8 /intern | |
parent | 74017cb0202811587c0227b9ff50ca9ae12c9a8e (diff) |
Fix for text object on windows.
No utf8 when keyup
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 99ce81165ad..956a159a4ec 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -725,6 +725,8 @@ GHOST_EventKey* GHOST_SystemWin32::processKeyEvent(GHOST_IWindow *window, RAWINP (wchar_t*)utf16, 1, (LPSTR) utf8_char, 5, NULL,NULL); else *utf8_char = 0; + + if(!keyDown) utf8_char[0] = '\0'; event = new GHOST_EventKey(system->getMilliSeconds(), keyDown ? GHOST_kEventKeyDown: GHOST_kEventKeyUp, window, key, (*utf8_char & 0x80)?'?':*utf8_char, utf8_char); |