Commit 8c9a6e9f authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

winex11: Send WM_SYSKEYDOWN and WM_SYSKEYUP when the 'F10' key is used.

parent b74c0cc2
......@@ -1197,9 +1197,10 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD event_flags, DWORD
if (event_flags & KEYEVENTF_KEYUP)
{
message = WM_KEYUP;
if ((key_state_table[VK_MENU] & 0x80) &&
((wVkStripped == VK_MENU) || (wVkStripped == VK_CONTROL)
|| !(key_state_table[VK_CONTROL] & 0x80)))
if (((key_state_table[VK_MENU] & 0x80) &&
((wVkStripped == VK_MENU) || (wVkStripped == VK_CONTROL)
|| !(key_state_table[VK_CONTROL] & 0x80)))
|| (wVkStripped == VK_F10))
{
if( TrackSysKey == VK_MENU || /* <ALT>-down/<ALT>-up sequence */
(wVkStripped != VK_MENU)) /* <ALT>-down...<something else>-up */
......@@ -1211,8 +1212,9 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD event_flags, DWORD
else
{
message = WM_KEYDOWN;
if ((key_state_table[VK_MENU] & 0x80 || wVkStripped == VK_MENU) &&
!(key_state_table[VK_CONTROL] & 0x80 || wVkStripped == VK_CONTROL))
if (((key_state_table[VK_MENU] & 0x80 || wVkStripped == VK_MENU) &&
!(key_state_table[VK_CONTROL] & 0x80 || wVkStripped == VK_CONTROL)) ||
(wVkStripped == VK_F10))
{
message = WM_SYSKEYDOWN;
TrackSysKey = wVkStripped;
......
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