Commit 35f0cf26 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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.
parent 2e9aa0c5
...@@ -905,6 +905,8 @@ void macdrv_keyboard_changed(const macdrv_event *event) ...@@ -905,6 +905,8 @@ void macdrv_keyboard_changed(const macdrv_event *event)
thread_data->dead_key_state = 0; thread_data->dead_key_state = 0;
macdrv_compute_keyboard_layout(thread_data); macdrv_compute_keyboard_layout(thread_data);
SendMessageW(GetActiveWindow(), WM_CANCELMODE, 0, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment