mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[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:
parent
df9c535542
commit
34068456a5
2 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue