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
4b292b0c
Commit
4b292b0c
authored
Nov 13, 2006
by
Clinton Stimpson
Committed by
Alexandre Julliard
Nov 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fix key handling in dialogs.
parent
ae64a622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
editor.c
dlls/riched20/editor.c
+14
-2
No files found.
dlls/riched20/editor.c
View file @
4b292b0c
...
...
@@ -1465,8 +1465,20 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
case
WM_GETDLGCODE
:
{
UINT
code
=
DLGC_WANTCHARS
|
DLGC_WANTARROWS
;
if
(
GetWindowLongW
(
hWnd
,
GWL_STYLE
)
&
ES_WANTRETURN
)
code
|=
0
;
/* FIXME what can we do here ? ask for messages and censor them ? */
if
(
lParam
&&
(((
LPMSG
)
lParam
)
->
message
==
WM_KEYDOWN
))
{
int
vk
=
(
int
)((
LPMSG
)
lParam
)
->
wParam
;
/* if style says we want return key */
if
((
vk
==
VK_RETURN
)
&&
(
GetWindowLongW
(
hWnd
,
GWL_STYLE
)
&
ES_WANTRETURN
))
{
code
|=
DLGC_WANTMESSAGE
;
}
/* we always handle ctrl-tab */
if
((
vk
==
VK_TAB
)
&&
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
))
{
code
|=
DLGC_WANTMESSAGE
;
}
}
return
code
;
}
case
WM_NCCREATE
:
...
...
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