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
b52c89fc
Commit
b52c89fc
authored
Apr 23, 2014
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: For GetKeyNameText(), use the hard-coded table in preference to the Mac keyboard layout.
parent
c4a28490
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
keyboard.c
dlls/winemac.drv/keyboard.c
+5
-8
No files found.
dlls/winemac.drv/keyboard.c
View file @
b52c89fc
...
...
@@ -1229,6 +1229,8 @@ INT CDECL macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
UInt32
deadKeyState
=
0
;
UniCharCount
len
;
OSStatus
status
;
DWORD
vkey
;
int
i
;
uchr
=
(
const
UCKeyboardLayout
*
)
CFDataGetBytePtr
(
thread_data
->
keyboard_layout_uchr
);
status
=
UCKeyTranslate
(
uchr
,
keyc
,
kUCKeyActionDisplay
,
0
,
thread_data
->
keyboard_type
,
...
...
@@ -1237,13 +1239,8 @@ INT CDECL macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
len
=
0
;
if
(
len
&&
isgraphW
(
buffer
[
0
]))
buffer
[
len
]
=
0
;
else
{
DWORD
vkey
=
thread_data
->
keyc2vkey
[
keyc
];
int
i
;
if
(
scan
&
0x100
)
vkey
|=
0x100
;
vkey
=
thread_data
->
keyc2vkey
[
keyc
];
if
(
lparam
&
(
1
<<
25
))
{
/* Caller doesn't care about distinctions between left and
...
...
@@ -1262,7 +1259,8 @@ INT CDECL macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
}
}
len
=
0
;
if
(
scan
&
0x100
)
vkey
|=
0x100
;
for
(
i
=
0
;
i
<
sizeof
(
vkey_names
)
/
sizeof
(
vkey_names
[
0
]);
i
++
)
{
if
(
vkey_names
[
i
].
vkey
==
vkey
)
...
...
@@ -1279,7 +1277,6 @@ INT CDECL macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size)
snprintfW
(
buffer
,
size
,
format
,
vkey
);
len
=
strlenW
(
buffer
);
}
}
if
(
!
len
)
break
;
...
...
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