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
b7b4fd03
Commit
b7b4fd03
authored
Nov 28, 2000
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We were returning characters for various CTRL + Symbol keystrokes
which should not return characters.
parent
db6fc1ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
keyboard.c
windows/x11drv/keyboard.c
+6
-3
No files found.
windows/x11drv/keyboard.c
View file @
b7b4fd03
...
...
@@ -1544,13 +1544,16 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
}
/* more areas where X returns characters but Windows does not
CTRL + number */
if
((
lpKeyState
[
VK_CONTROL
]
&
0x80
)
&&
(
keysym
>=
48
)
&&
(
keysym
<=
57
))
CTRL + number or CTRL + symbol*/
if
(
lpKeyState
[
VK_CONTROL
]
&
0x80
)
{
if
(((
keysym
>=
33
)
&&
(
keysym
<
'A'
))
||
((
keysym
>
'Z'
)
&&
(
keysym
<
'a'
)))
{
*
(
char
*
)
lpChar
=
0
;
ret
=
0
;
}
}
/* We have another special case for delete key (XK_Delete) on an
extended keyboard. X returns a char for it, but Windows doesn't */
...
...
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