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
f624876d
Commit
f624876d
authored
Jan 20, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Strip the _L or _R from X11DRV_GetKeyNameText when appropriate.
parent
3f1c63c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
keyboard.c
dlls/winex11.drv/keyboard.c
+18
-0
No files found.
dlls/winex11.drv/keyboard.c
View file @
f624876d
...
...
@@ -2301,6 +2301,24 @@ INT CDECL X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
keys
=
keycode_to_keysym
(
display
,
keyc
,
0
);
name
=
XKeysymToString
(
keys
);
wine_tsx11_unlock
();
if
(
name
&&
(
vkey
==
VK_SHIFT
||
vkey
==
VK_CONTROL
||
vkey
==
VK_MENU
))
{
char
*
idx
=
strrchr
(
name
,
'_'
);
if
(
idx
&&
(
strcasecmp
(
idx
,
"_r"
)
==
0
||
strcasecmp
(
idx
,
"_l"
)
==
0
))
{
INT
rc
=
0
;
TRACE
(
"found scan=%04x keyc=%u keysym=%lx modified_string=%s
\n
"
,
scanCode
,
keyc
,
keys
,
debugstr_an
(
name
,
idx
-
name
));
if
(
lpBuffer
&&
nSize
)
{
rc
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
name
,
idx
-
name
+
1
,
lpBuffer
,
nSize
);
if
(
rc
>
0
)
lpBuffer
[
rc
-
1
]
=
0
;
}
return
rc
;
}
}
TRACE
(
"found scan=%04x keyc=%u keysym=%04x string=%s
\n
"
,
scanCode
,
keyc
,
(
int
)
keys
,
debugstr_a
(
name
));
if
(
lpBuffer
&&
nSize
&&
name
)
...
...
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