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
d5d878f2
Commit
d5d878f2
authored
Mar 09, 2006
by
Augusto Arcoverde da Rocha
Committed by
Alexandre Julliard
Apr 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Fixed handling of XK_KP_Separator.
parent
e4756347
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
keyboard.c
dlls/x11drv/keyboard.c
+7
-3
No files found.
dlls/x11drv/keyboard.c
View file @
d5d878f2
...
...
@@ -1059,7 +1059,7 @@ static const WORD nonchar_key_scan[256] =
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x47
,
0x4B
,
0x48
,
/* FF90 */
0x4D
,
0x50
,
0x49
,
0x51
,
0x4F
,
0x4C
,
0x52
,
0x53
,
/* FF98 */
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
/* FFA0 */
0x00
,
0x00
,
0x37
,
0x4E
,
/*?*/
0
,
0x4A
,
0x53
,
0x135
,
/* FFA8 */
0x00
,
0x00
,
0x37
,
0x4E
,
0x53
,
0x4A
,
0x53
,
0x135
,
/* FFA8 */
0x52
,
0x4F
,
0x50
,
0x51
,
0x4B
,
0x4C
,
0x4D
,
0x47
,
/* FFB0 */
0x48
,
0x49
,
0x00
,
0x00
,
0x00
,
0x00
,
/* FFB8 */
/* function keys */
...
...
@@ -1089,8 +1089,9 @@ static WORD EVENT_event_to_vkey( XIC xic, XKeyEvent *e)
else
XLookupString
(
e
,
buf
,
sizeof
(
buf
),
&
keysym
,
NULL
);
if
((
keysym
>=
0xFFAE
)
&&
(
keysym
<=
0xFFB9
)
&&
(
keysym
!=
0xFFAF
)
&&
(
e
->
state
&
NumLockMask
))
if
((
e
->
state
&
NumLockMask
)
&&
(
keysym
==
XK_KP_Separator
||
keysym
==
XK_KP_Decimal
||
(
keysym
>=
XK_KP_0
&&
keysym
<=
XK_KP_9
)))
/* Only the Keypad keys 0-9 and . send different keysyms
* depending on the NumLock state */
return
nonchar_key_vkey
[
keysym
&
0xFF
];
...
...
@@ -2377,6 +2378,9 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
if
(
virtKey
==
VK_DECIMAL
)
e
.
keycode
=
XKeysymToKeycode
(
e
.
display
,
XK_KP_Decimal
);
if
(
virtKey
==
VK_SEPARATOR
)
e
.
keycode
=
XKeysymToKeycode
(
e
.
display
,
XK_KP_Separator
);
if
(
!
e
.
keycode
&&
virtKey
!=
VK_NONAME
)
{
WARN
(
"Unknown virtual key %X !!!
\n
"
,
virtKey
);
...
...
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