winemac: Send WM_CANCELMODE when keyboard layout changes from Cocoa side.
commit35f0cf26b0225f31d662c834d55997a7a4bf3c59
authorKen Thomases <ken@codeweavers.com>
Thu, 24 Oct 2013 01:13:10 +0000 (23 20:13 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 24 Oct 2013 08:54:55 +0000 (24 10:54 +0200)
tree2db4c31c5bcc6f5889a2cafb9acb11379c8408d9
parent2e9aa0c5998f3a95686b00ed03eb034cb08f40f0
winemac: Send WM_CANCELMODE when keyboard layout changes from Cocoa side.

The standard keyboard shortcut for switching the keyboard layout is Command-
Space, but the Mac driver never sees the Space key press.  So, Wine only sees
a press and release of Alt, which puts focus on the menu bar.  This prevents
that focus change.
dlls/winemac.drv/keyboard.c