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
37db87ef
Commit
37db87ef
authored
Apr 29, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't translate control codes when alt is pressed.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
95d8f40f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
input.c
dlls/user32/input.c
+4
-2
No files found.
dlls/user32/input.c
View file @
37db87ef
...
...
@@ -880,7 +880,7 @@ INT WINAPI ToUnicode(UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
INT
WINAPI
ToUnicodeEx
(
UINT
virt
,
UINT
scan
,
const
BYTE
*
state
,
WCHAR
*
str
,
int
size
,
UINT
flags
,
HKL
layout
)
{
BOOL
shift
,
ctrl
,
numlock
;
BOOL
shift
,
ctrl
,
alt
,
numlock
;
WCHAR
buffer
[
2
];
INT
len
;
...
...
@@ -890,6 +890,7 @@ INT WINAPI ToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
if
(
!
state
)
return
0
;
if
((
len
=
USER_Driver
->
pToUnicodeEx
(
virt
,
scan
,
state
,
str
,
size
,
flags
,
layout
))
>=
-
1
)
return
len
;
alt
=
state
[
VK_MENU
]
&
0x80
;
shift
=
state
[
VK_SHIFT
]
&
0x80
;
ctrl
=
state
[
VK_CONTROL
]
&
0x80
;
numlock
=
state
[
VK_NUMLOCK
]
&
0x01
;
...
...
@@ -934,7 +935,7 @@ INT WINAPI ToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
break
;
}
}
else
/* Control codes */
else
if
(
!
alt
)
/* Control codes */
{
switch
(
virt
)
{
...
...
@@ -948,6 +949,7 @@ INT WINAPI ToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
break
;
}
}
else
buffer
[
0
]
=
0
;
buffer
[
1
]
=
0
;
len
=
wcslen
(
buffer
);
lstrcpynW
(
str
,
buffer
,
size
);
...
...
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