Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7f10fe07
Commit
7f10fe07
authored
Apr 07, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle ES_MULTILINE correctly for WM_KEYDOWN/VK_RETURN.
parent
c8a4bb8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
edit.c
dlls/user32/edit.c
+1
-1
edit.c
dlls/user32/tests/edit.c
+2
-2
No files found.
dlls/user32/edit.c
View file @
7f10fe07
...
...
@@ -4596,7 +4596,7 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
break
;
case
VK_RETURN
:
/* If the edit doesn't want the return send a message to the default object */
if
(
!
(
es
->
style
&
ES_WANTRETURN
))
if
(
!
(
es
->
style
&
ES_
MULTILINE
)
||
!
(
es
->
style
&
ES_
WANTRETURN
))
{
HWND
hwndParent
=
GetParent
(
es
->
hwndSelf
);
DWORD
dw
=
SendMessageW
(
hwndParent
,
DM_GETDEFID
,
0
,
0
);
...
...
dlls/user32/tests/edit.c
View file @
7f10fe07
...
...
@@ -1898,7 +1898,7 @@ static void test_singleline_wantreturn_edit_dialog(void)
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
0
);
todo_wine
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
1
);
todo_wine
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
...
...
@@ -1914,7 +1914,7 @@ static void test_singleline_wantreturn_edit_dialog(void)
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
6
);
todo_wine
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
7
);
todo_wine
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
}
...
...
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