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
8fb119ba
Commit
8fb119ba
authored
Oct 04, 2009
by
Sergey Khodych
Committed by
Alexandre Julliard
Oct 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement handling of WM_KEYDOWN VK_RETURN in the dialog mode.
parent
851c33dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
287 additions
and
0 deletions
+287
-0
editor.c
dlls/riched20/editor.c
+25
-0
editor.c
dlls/riched20/tests/editor.c
+262
-0
No files found.
dlls/riched20/editor.c
View file @
8fb119ba
...
...
@@ -2145,6 +2145,31 @@ ME_KeyDown(ME_TextEditor *editor, WORD nKey)
ME_SendRequestResize
(
editor
,
FALSE
);
return
TRUE
;
case
VK_RETURN
:
if
(
editor
->
bDialogMode
)
{
if
(
ctrl_is_down
)
return
TRUE
;
if
(
!
(
editor
->
styleFlags
&
ES_WANTRETURN
))
{
if
(
editor
->
hwndParent
)
{
DWORD
dw
;
dw
=
SendMessageW
(
editor
->
hwndParent
,
DM_GETDEFID
,
0
,
0
);
if
(
HIWORD
(
dw
)
==
DC_HASDEFID
)
{
HWND
hwDefCtrl
=
GetDlgItem
(
editor
->
hwndParent
,
LOWORD
(
dw
));
if
(
hwDefCtrl
)
{
SendMessageW
(
editor
->
hwndParent
,
WM_NEXTDLGCTL
,
(
WPARAM
)
hwDefCtrl
,
(
LPARAM
)
TRUE
);
PostMessageW
(
hwDefCtrl
,
WM_KEYDOWN
,
VK_RETURN
,
0
);
}
}
}
return
TRUE
;
}
}
if
(
editor
->
styleFlags
&
ES_MULTILINE
)
{
ME_Cursor
cursor
=
editor
->
pCursors
[
0
];
...
...
dlls/riched20/tests/editor.c
View file @
8fb119ba
This diff is collapsed.
Click to expand it.
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