Skip to content

Commit

Permalink
[COMCTL32][USER32] EDIT control: Check bCaptureState on WM_CHAR (reac…
Browse files Browse the repository at this point in the history
…tos#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
  • Loading branch information
katahiromz authored Dec 21, 2023
1 parent df9c535 commit 3406845
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dll/win32/comctl32/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 5 additions & 0 deletions win32ss/user/user32/controls/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3406845

Please sign in to comment.