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
50e8768f
Commit
50e8768f
authored
Jun 10, 2002
by
David Hammerton
Committed by
Alexandre Julliard
Jun 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MapVirtualKey actually returns uppercase keys in Windows.
parent
01ecb577
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
keyboard.c
dlls/x11drv/keyboard.c
+10
-3
No files found.
dlls/x11drv/keyboard.c
View file @
50e8768f
...
...
@@ -1358,15 +1358,22 @@ UINT X11DRV_MapVirtualKey(UINT wCode, UINT wMapType)
return
0
;
}
case
2
:
{
/* vkey-code to unshifted ANSI code */
/* (was FIXME) : what does unshifted mean ? 'a' or 'A' ? */
/* My Windows returns 'A'. */
/* we still don't know what "unshifted" means. in windows VK_W (0x57)
* returns 0x57, which is upercase 'W'. So we have to return the uppercase
* key.. Looks like something is wrong with the MS docs?
* This is only true for letters, for example VK_0 returns '0' not ')'.
* - hence we use the lock mask to ensure this happens.
*/
/* let's do vkey -> keycode -> (XLookupString) ansi char */
XKeyEvent
e
;
KeySym
keysym
;
int
keyc
;
char
s
[
2
];
e
.
display
=
display
;
e
.
state
=
0
;
/* unshifted */
e
.
state
=
LockMask
;
/* LockMask should behave exactly like caps lock - upercase
* the letter keys and thats about it. */
e
.
keycode
=
0
;
/* We exit on the first keycode found, to speed up the thing. */
...
...
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