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
f9e7c3f4
Commit
f9e7c3f4
authored
Aug 18, 2009
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle VK_PACKET messages in TranslateMessage.
parent
55736136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
message.c
dlls/user32/message.c
+13
-3
No files found.
dlls/user32/message.c
View file @
f9e7c3f4
...
@@ -3015,11 +3015,21 @@ BOOL WINAPI TranslateMessage( const MSG *msg )
...
@@ -3015,11 +3015,21 @@ BOOL WINAPI TranslateMessage( const MSG *msg )
if
(
msg
->
message
<
WM_KEYFIRST
||
msg
->
message
>
WM_KEYLAST
)
return
FALSE
;
if
(
msg
->
message
<
WM_KEYFIRST
||
msg
->
message
>
WM_KEYLAST
)
return
FALSE
;
if
(
msg
->
message
!=
WM_KEYDOWN
&&
msg
->
message
!=
WM_SYSKEYDOWN
)
return
TRUE
;
if
(
msg
->
message
!=
WM_KEYDOWN
&&
msg
->
message
!=
WM_SYSKEYDOWN
)
return
TRUE
;
TRACE_
(
key
)(
"Translating key %s (%04lx), scancode %0
2
x
\n
"
,
TRACE_
(
key
)(
"Translating key %s (%04lx), scancode %0
4
x
\n
"
,
SPY_GetVKeyName
(
msg
->
wParam
),
msg
->
wParam
,
LOBYTE
(
HIWORD
(
msg
->
lParam
)
));
SPY_GetVKeyName
(
msg
->
wParam
),
msg
->
wParam
,
HIWORD
(
msg
->
lParam
));
if
(
msg
->
wParam
==
VK_PROCESSKEY
)
switch
(
msg
->
wParam
)
{
case
VK_PACKET
:
message
=
(
msg
->
message
==
WM_KEYDOWN
)
?
WM_CHAR
:
WM_SYSCHAR
;
TRACE_
(
key
)(
"PostMessageW(%p,%s,%04x,%08x)
\n
"
,
msg
->
hwnd
,
SPY_GetMsgName
(
message
,
msg
->
hwnd
),
HIWORD
(
msg
->
lParam
),
LOWORD
(
msg
->
lParam
));
PostMessageW
(
msg
->
hwnd
,
message
,
HIWORD
(
msg
->
lParam
),
LOWORD
(
msg
->
lParam
));
return
TRUE
;
case
VK_PROCESSKEY
:
return
ImmTranslateMessage
(
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
return
ImmTranslateMessage
(
msg
->
hwnd
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
);
}
GetKeyboardState
(
state
);
GetKeyboardState
(
state
);
/* FIXME : should handle ToUnicode yielding 2 */
/* FIXME : should handle ToUnicode yielding 2 */
...
...
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