[winforms] WM_SETFOCUS is sent before Keyboard Focus is changed.
authorTom Hindle <tom_hindle@sil.org>
Sat, 11 Dec 2010 00:41:59 +0000 (19:41 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 11 Dec 2010 00:54:13 +0000 (19:54 -0500)
commit0c5085f5bc913306711cf3944bfed707f0be1b4a
treea871286eed821f551e3368542997b3df26c79a11
parent1436ec9426a43a4c0db09ad2bfb024b376f2b18b
[winforms] WM_SETFOCUS is sent before Keyboard Focus is changed.

Switches Keyboard focus so that it occurs before WM_SETFOCUS is sent.

This means that the wrong keyboard im is selected while process winform events
caused by WM_SETFOCUS.

Attaching patch that changes this so that keyboard im is focused before
WM_SETFOCUS is sent.

Fixes: #557277
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs