[Bf-blender-cvs] [6e72f06] master: Fix duplicated IME input
Severin
noreply at git.blender.org
Thu Mar 26 22:19:25 CET 2015
Commit: 6e72f06069ae427a32501676c8b86e9e8c3ddb8c
Author: Severin
Date: Thu Mar 26 21:16:43 2015 +0100
Branches: master
https://developer.blender.org/rB6e72f06069ae427a32501676c8b86e9e8c3ddb8c
Fix duplicated IME input
AFAIK a few IMEs were affected by this so I guess we can now add a
few more IMEs to the "officially supported" list.
Patch by @randon (thanks again!), minor edits by me.
===================================================================
M intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 27eb387..038e6a0 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -989,6 +989,10 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
eventHandled = true;
ime->UpdateImeWindow(hwnd);
ime->UpdateInfo(hwnd);
+ if (ime->eventImeData.result_len) {
+ /* remove redundant IME event */
+ eventManager->removeTypeEvents(GHOST_kEventImeComposition, window);
+ }
event = processImeEvent(
GHOST_kEventImeComposition,
window,
More information about the Bf-blender-cvs
mailing list