Skip to content
Snippets Groups Projects
Commit a6c7b6fd authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard
Browse files

richedit: Typing is ignored while mouse is captured.

I noticed a while ago that on Windows XP richedit controls ignored
characters typed while the mouse is captured (e.g. from holding the left
or middle button down).  Arrow keys, delete, and backspace, copying,
cutting, pasting, and everything else handled on WM_CHAR and WM_KEYDOWN
messages are also ignored.
parent 9b7825f6
No related branches found
Tags wine-970629
No related merge requests found
......@@ -2155,6 +2155,8 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
BOOL ctrl_is_down = GetKeyState(VK_CONTROL) & 0x8000;
BOOL shift_is_down = GetKeyState(VK_SHIFT) & 0x8000;
if (editor->bMouseCaptured)
return FALSE;
if (nKey != VK_SHIFT && nKey != VK_CONTROL && nKey != VK_MENU)
editor->nSelectionType = stPosition;
......@@ -2400,6 +2402,9 @@ static LRESULT ME_Char(ME_TextEditor *editor, WPARAM charCode,
{
WCHAR wstr;
if (editor->bMouseCaptured)
return 0;
if (unicode)
wstr = (WCHAR)charCode;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment