Fix problem with duplicated initial character when initiating or
switching to new windows. This is done by updating our copies of state
and modes from the the new window when it receives WM_IME_SETCONTEXT
message.
quoting from: T92172
This differential is fix a bug found newly for Windows10's newer MS IME support.
The background is almost same with D11929 as title.
The problem is that Blender for MS-Windows has Window and Dialog. In MS-Windows API programming, to controll them,
a programmer have to define window procedure for each windows and dialogs, and currently Blender for MS-Windows's window and dialog are created by this way.
So when programmer control IME, it needs that IME control api are called per windows and dialogs.
At [D11929], I missed a Blender for MS-Windows's implement that Window and Dialog has window procedure separately.
By this, the IME status value has Blender's Dialog instance has not been updated.
This patch is update the dialog's IME status when it is activated.


