From 8a6e2c8eeac1b4d0ca1b7b6a6c3d1b0e0a949532 Mon Sep 17 00:00:00 2001 From: Erich Hoover Date: Thu, 12 Nov 2009 10:36:08 -0700 Subject: [PATCH] wineconsole: Fix Alt+F10 sent when F10 pressed. --- programs/wineconsole/user.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index 391e833ab24..15626d4ac3f 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -1015,7 +1015,7 @@ static void WCUSER_HandleSelectionKey(struct inner_data* data, BOOL down, * generates input_record from windows WM_KEYUP/WM_KEYDOWN messages */ static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down, - WPARAM wParam, LPARAM lParam, BOOL sys) + WPARAM wParam, LPARAM lParam) { INPUT_RECORD ir; DWORD n; @@ -1033,7 +1033,6 @@ static void WCUSER_GenerateKeyInputRecord(struct inner_data* data, BOOL down, ir.Event.KeyEvent.uChar.UnicodeChar = 0; ir.Event.KeyEvent.dwControlKeyState = WCUSER_GetCtrlKeyState(keyState); 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) { @@ -1112,11 +1111,11 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM if (PRIVATE(data)->has_selection) WCUSER_HandleSelectionKey(data, uMsg == WM_KEYDOWN, wParam, lParam); else - WCUSER_GenerateKeyInputRecord(data, uMsg == WM_KEYDOWN, wParam, lParam, FALSE); + WCUSER_GenerateKeyInputRecord(data, uMsg == WM_KEYDOWN, wParam, lParam); break; case WM_SYSKEYDOWN: case WM_SYSKEYUP: - WCUSER_GenerateKeyInputRecord(data, uMsg == WM_SYSKEYDOWN, wParam, lParam, TRUE); + WCUSER_GenerateKeyInputRecord(data, uMsg == WM_SYSKEYDOWN, wParam, lParam); break; case WM_LBUTTONDOWN: if (data->curcfg.quick_edit || PRIVATE(data)->has_selection)