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
968fc333
Commit
968fc333
authored
Nov 23, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Support SGCAPS attributes in KBDTABLES.
parent
b2d16b92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
input.c
dlls/win32u/input.c
+5
-0
No files found.
dlls/win32u/input.c
View file @
968fc333
...
...
@@ -531,6 +531,11 @@ static WCHAR kbd_tables_vkey_to_wchar( const KBDTABLES *tables, UINT vkey, const
for
(
entry
=
table
->
pVkToWchars
;
entry
->
VirtualKey
;
entry
=
NEXT_ENTRY
(
table
,
entry
))
{
if
(
entry
->
VirtualKey
!=
vkey
)
continue
;
/* SGCAPS attribute may be set on entries where VK_CAPITAL and VK_SHIFT behave differently.
* The entry corresponds to the mapping when Caps Lock is on, and a second entry follows it
* with the mapping when Caps Lock is off.
*/
if
((
entry
->
Attributes
&
SGCAPS
)
&&
!
caps
)
entry
=
NEXT_ENTRY
(
table
,
entry
);
if
((
entry
->
Attributes
&
CAPLOK
)
&&
table
->
nModifications
>
caps_mod
)
return
entry
->
wch
[
caps_mod
];
return
entry
->
wch
[
mod
];
}
...
...
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