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
f6e2af68
Commit
f6e2af68
authored
Nov 20, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Nov 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Retrieve the real keyboard layout where appropriate.
parent
22008f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
keyboard.c
dlls/winemac.drv/keyboard.c
+3
-2
No files found.
dlls/winemac.drv/keyboard.c
View file @
f6e2af68
...
...
@@ -395,6 +395,7 @@ static const struct {
{
VK_VOLUME_UP
|
0x100
,
"Volume Up"
},
};
HKL
CDECL
macdrv_GetKeyboardLayout
(
DWORD
);
static
BOOL
char_matches_string
(
WCHAR
wchar
,
UniChar
*
string
,
BOOL
ignore_diacritics
)
{
...
...
@@ -1239,7 +1240,7 @@ HKL CDECL macdrv_ActivateKeyboardLayout(HKL hkl, UINT flags)
}
oldHkl
=
thread_data
->
active_keyboard_layout
;
if
(
!
oldHkl
)
oldHkl
=
get_locale_keyboard_layout
(
);
if
(
!
oldHkl
)
oldHkl
=
macdrv_GetKeyboardLayout
(
0
);
thread_data
->
active_keyboard_layout
=
hkl
;
...
...
@@ -1396,7 +1397,7 @@ BOOL CDECL macdrv_GetKeyboardLayoutName(LPWSTR name)
static
const
WCHAR
formatW
[]
=
{
'%'
,
'0'
,
'8'
,
'x'
,
0
};
DWORD
layout
;
layout
=
HandleToUlong
(
get_locale_keyboard_layout
(
));
layout
=
HandleToUlong
(
macdrv_GetKeyboardLayout
(
0
));
if
(
HIWORD
(
layout
)
==
LOWORD
(
layout
))
layout
=
LOWORD
(
layout
);
sprintfW
(
name
,
formatW
,
layout
);
TRACE
(
"returning %s
\n
"
,
debugstr_w
(
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