[Bug 28670] GetKeyboardLayout(0) returns wrong HKL

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Oct 13 00:53:52 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=28670

--- Comment #4 from Sebastian Riemer <Sebastian.Riemer at gmx.de> 2011-10-13 00:53:52 CDT ---
(In reply to comment #3)
> It's pretty hard (if not impossible) to properly implement keyboard layouts
> without support from X11, and X11 doesn't help in that area.

This is not what I mean. I only want that it reports a current HKL which is
comparable to the way Windows does it to the applications. Internally wine
can/should do what ever is best.

The Function "X11DRV_KEYBOARD_DetectLayout" compares the stuff in
"main_key_tab" with X11 and sets "kbd_layout" index to the correct place. So,
we already have the layout to report to the outside in
main_key_tab[kbd_layout].lcid. Probably a reverse mapping is needed from HKL to
index in main_key_tab. But that's it.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list