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
5079844b
Commit
5079844b
authored
Dec 27, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Dec 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the X state instead of the VK key state to check for eatable
characters, since the VK key state isn't a fan of AltGr.
parent
e3178f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
keyboard.c
windows/x11drv/keyboard.c
+3
-3
No files found.
windows/x11drv/keyboard.c
View file @
5079844b
...
...
@@ -1535,8 +1535,8 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
else
{
/* ret != 0 */
/* We have a special case to handle : Shift + arrow, shift + home, ...
X returns a char for it, but Windows doesn't. Let's eat it. */
if
(
!
(
lpKeyState
[
VK_NUMLOCK
]
&
0x01
)
/* NumLock is off */
&&
(
lpKeyState
[
VK_SHIFT
]
&
0x80
)
/* Shift is pressed */
if
(
!
(
e
.
state
&
NumLockMask
)
/* NumLock is off */
&&
(
e
.
state
&
ShiftMask
)
/* Shift is pressed */
&&
(
keysym
>=
XK_KP_0
)
&&
(
keysym
<=
XK_KP_9
))
{
*
(
char
*
)
lpChar
=
0
;
...
...
@@ -1545,7 +1545,7 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
/* more areas where X returns characters but Windows does not
CTRL + number or CTRL + symbol*/
if
(
lpKeyState
[
VK_CONTROL
]
&
0x80
)
if
(
e
.
state
&
ControlMask
)
{
if
(((
keysym
>=
33
)
&&
(
keysym
<
'A'
))
||
((
keysym
>
'Z'
)
&&
(
keysym
<
'a'
)))
...
...
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