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
ab006d00
Commit
ab006d00
authored
Jun 26, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Fix handling of Caps Lock with non-alphabetic keys.
Spotted by Dmitry Timoshkov. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae5ec5c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
keyboard.c
dlls/wineandroid.drv/keyboard.c
+2
-2
No files found.
dlls/wineandroid.drv/keyboard.c
View file @
ab006d00
...
...
@@ -757,7 +757,7 @@ INT CDECL ANDROID_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
LPWSTR
buf
,
int
size
,
UINT
flags
,
HKL
hkl
)
{
WCHAR
buffer
[
2
];
BOOL
shift
=
(
state
[
VK_SHIFT
]
&
0x80
)
||
(
state
[
VK_CAPITAL
]
&
0x01
)
;
BOOL
shift
=
state
[
VK_SHIFT
]
&
0x80
;
BOOL
ctrl
=
state
[
VK_CONTROL
]
&
0x80
;
BOOL
numlock
=
state
[
VK_NUMLOCK
]
&
0x01
;
...
...
@@ -798,7 +798,7 @@ INT CDECL ANDROID_ToUnicodeEx( UINT virt, UINT scan, const BYTE *state,
}
if
(
virt
>=
'A'
&&
virt
<=
'Z'
)
{
buffer
[
0
]
=
shift
?
virt
:
virt
+
'a'
-
'A'
;
buffer
[
0
]
=
shift
||
(
state
[
VK_CAPITAL
]
&
0x01
)
?
virt
:
virt
+
'a'
-
'A'
;
break
;
}
if
(
virt
>=
VK_NUMPAD0
&&
virt
<=
VK_NUMPAD9
&&
numlock
&&
!
shift
)
...
...
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