[COMCTL32][USER32] EDIT control: Check bCaptureState on WM_CHAR (#6206)

Based on KRosUser's edit_v2.patch.
Edit control should stop processing
characters when left mouse button
is down.
If es->bCaptureState is set, then
ignore WM_CHAR message.
CORE-10259
This commit is contained in:
Katayama Hirofumi MZ 2023-12-21 20:24:44 +09:00 committed by GitHub
parent df9c535542
commit 34068456a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -3051,6 +3051,11 @@ static LRESULT EDIT_WM_Char(EDITSTATE *es, WCHAR c)
{
BOOL control;
#ifdef __REACTOS__
if (es->bCaptureState)
return 0;
#endif
control = GetKeyState(VK_CONTROL) & 0x8000;
switch (c) {

View file

@ -3286,6 +3286,11 @@ static LRESULT EDIT_WM_Char(EDITSTATE *es, WCHAR c)
{
BOOL control;
#ifdef __REACTOS__
if (es->bCaptureState)
return 0;
#endif
control = GetKeyState(VK_CONTROL) & 0x8000;
switch (c) {