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

wineconsole: Fix Alt+F10 sent when F10 pressed.

parent f225f112
...@@ -1015,7 +1015,7 @@ static void WCUSER_HandleSelectionKey(struct inner_data* data, BOOL down, ...@@ -1015,7 +1015,7 @@ static void WCUSER_HandleSelectionKey(struct inner_data* data, BOOL down,
* generates input_record from windows WM_KEYUP/WM_KEYDOWN messages * generates input_record from windows WM_KEYUP/WM_KEYDOWN messages
*/ */
static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down, static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down,
WPARAM wParam, LPARAM lParam, BOOL sys) WPARAM wParam, LPARAM lParam)
{ {
INPUT_RECORD ir; INPUT_RECORD ir;
DWORD n; DWORD n;
...@@ -1033,7 +1033,6 @@ static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down, ...@@ -1033,7 +1033,6 @@ static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down,
ir.Event.KeyEvent.uChar.UnicodeChar = 0; ir.Event.KeyEvent.uChar.UnicodeChar = 0;
ir.Event.KeyEvent.dwControlKeyState = WCUSER_GetCtrlKeyState(keyState); ir.Event.KeyEvent.dwControlKeyState = WCUSER_GetCtrlKeyState(keyState);
if (lParam & (1L << 24)) ir.Event.KeyEvent.dwControlKeyState |= ENHANCED_KEY; if (lParam & (1L << 24)) ir.Event.KeyEvent.dwControlKeyState |= ENHANCED_KEY;
if (sys) ir.Event.KeyEvent.dwControlKeyState |= LEFT_ALT_PRESSED; /* FIXME: gotta choose one */
if (down) if (down)
{ {
...@@ -1112,11 +1111,11 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM ...@@ -1112,11 +1111,11 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
if (PRIVATE(data)->has_selection) if (PRIVATE(data)->has_selection)
WCUSER_HandleSelectionKey(data, uMsg == WM_KEYDOWN, wParam, lParam); WCUSER_HandleSelectionKey(data, uMsg == WM_KEYDOWN, wParam, lParam);
else else
WCUSER_GenerateKeyInputRecord(data, uMsg == WM_KEYDOWN, wParam, lParam, FALSE); WCUSER_GenerateKeyInputRecord(data, uMsg == WM_KEYDOWN, wParam, lParam);
break; break;
case WM_SYSKEYDOWN: case WM_SYSKEYDOWN:
case WM_SYSKEYUP: case WM_SYSKEYUP:
WCUSER_GenerateKeyInputRecord(data, uMsg == WM_SYSKEYDOWN, wParam, lParam, TRUE); WCUSER_GenerateKeyInputRecord(data, uMsg == WM_SYSKEYDOWN, wParam, lParam);
break; break;
case WM_LBUTTONDOWN: case WM_LBUTTONDOWN:
if (data->curcfg.quick_edit || PRIVATE(data)->has_selection) if (data->curcfg.quick_edit || PRIVATE(data)->has_selection)
......
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