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
7e341002
Commit
7e341002
authored
Apr 25, 2008
by
ByeongSik Jeon
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Reconstruct the ImmProcessKey, ImmTranslateMessage for the VK_PROCESSKEY.
parent
1f99d80c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
imm.c
dlls/imm32/imm.c
+8
-9
No files found.
dlls/imm32/imm.c
View file @
7e341002
...
...
@@ -2239,7 +2239,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WCHAR chr, LPARAM lKeyData)
UINT
uVirtKey
;
static
const
int
list_count
=
10
;
TRACE
(
"%p %x
'%c'
%x
\n
"
,
hwnd
,
msg
,
chr
,
(
UINT
)
lKeyData
);
TRACE
(
"%p %x
%x
%x
\n
"
,
hwnd
,
msg
,
chr
,
(
UINT
)
lKeyData
);
if
(
imc
)
data
=
(
InputContextData
*
)
imc
;
...
...
@@ -2259,6 +2259,8 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WCHAR chr, LPARAM lKeyData)
{
if
(
!
is_himc_ime_unicode
(
data
))
ToAscii
(
data
->
lastVK
,
scancode
,
state
,
&
chr
,
0
);
else
ToUnicodeEx
(
data
->
lastVK
,
scancode
,
state
,
&
chr
,
1
,
0
,
GetKeyboardLayout
(
0
));
uVirtKey
=
MAKELONG
(
data
->
lastVK
,
chr
);
}
else
...
...
@@ -2279,6 +2281,8 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WCHAR chr, LPARAM lKeyData)
HeapFree
(
GetProcessHeap
(),
0
,
list
);
data
->
lastVK
=
VK_PROCESSKEY
;
return
(
msg_count
>
0
);
}
...
...
@@ -2303,17 +2307,12 @@ BOOL WINAPI ImmProcessKey(HWND hwnd, HKL hKL, UINT vKey, LPARAM lKeyData, DWORD
return
FALSE
;
GetKeyboardState
(
state
);
data
->
lastVK
=
vKey
;
if
(
data
->
immKbd
->
pImeProcessKey
(
imc
,
vKey
,
lKeyData
,
state
))
{
WCHAR
key
;
UINT
scancode
;
scancode
=
lKeyData
>>
0x10
&
0xff
;
ToUnicodeEx
(
vKey
,
scancode
,
state
,
&
key
,
1
,
0
,
hKL
);
return
ImmTranslateMessage
(
hwnd
,
WM_KEYDOWN
,
key
,
lKeyData
);
data
->
lastVK
=
vKey
;
return
TRUE
;
}
data
->
lastVK
=
VK_PROCESSKEY
;
return
FALSE
;
}
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