Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b7ffa867
Commit
b7ffa867
authored
Apr 09, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add edit control check to see if its in a dialog on WM_CHAR/VK_TAB.
parent
f704d5c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
edit.c
dlls/user32/edit.c
+2
-5
edit.c
dlls/user32/tests/edit.c
+2
-4
No files found.
dlls/user32/edit.c
View file @
b7ffa867
...
...
@@ -861,11 +861,6 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
}
}
}
else
{
if
(
charW
==
VK_TAB
)
break
;
}
result
=
EDIT_WM_Char
(
es
,
charW
);
break
;
}
...
...
@@ -4050,6 +4045,8 @@ static LRESULT EDIT_WM_Char(EDITSTATE *es, WCHAR c)
if
((
es
->
style
&
ES_MULTILINE
)
&&
!
(
es
->
style
&
ES_READONLY
))
{
static
const
WCHAR
tabW
[]
=
{
'\t'
,
0
};
if
(
EDIT_IsInsideDialog
(
es
))
break
;
EDIT_EM_ReplaceSel
(
es
,
TRUE
,
tabW
,
TRUE
,
TRUE
);
}
break
;
...
...
dlls/user32/tests/edit.c
View file @
b7ffa867
...
...
@@ -1719,15 +1719,13 @@ static void test_tab(void)
ok
(
TRUE
==
r
,
"Expected: %d, got: %d
\n
"
,
TRUE
,
r
);
r
=
SendMessage
(
hwEdit
,
WM_CHAR
,
VK_TAB
,
0
);
todo_wine
ok
(
1
==
r
,
"Expected: %d, got: %d
\n
"
,
1
,
r
);
ok
(
1
==
r
,
"Expected: %d, got: %d
\n
"
,
1
,
r
);
/* get text */
buffer
[
0
]
=
0
;
r
=
SendMessage
(
hwEdit
,
WM_GETTEXT
,
16
,
(
LPARAM
)
buffer
);
todo_wine
{
ok
(
1
==
r
,
"Expected: %d, got len %d
\n
"
,
1
,
r
);
ok
(
0
==
strcmp
(
buffer
,
"
\t
"
),
"expected
\"\\
t
\"
, got
\"
%s
\"\n
"
,
buffer
);
}
DestroyWindow
(
hwEdit
);
...
...
@@ -1741,7 +1739,7 @@ static void test_tab(void)
ok
(
TRUE
==
r
,
"Expected: %d, got: %d
\n
"
,
TRUE
,
r
);
r
=
SendMessage
(
hwEdit
,
WM_CHAR
,
VK_TAB
,
0
);
todo_wine
ok
(
1
==
r
,
"Expected: %d, got: %d
\n
"
,
1
,
r
);
ok
(
1
==
r
,
"Expected: %d, got: %d
\n
"
,
1
,
r
);
/* get text */
buffer
[
0
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment