VirtualBox

Ticket #2 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Keyboard layout is messed up in Turkish layout

Reported by: cartman Assigned to:
Priority: major Component: other
Version: VirtualBox 1.3.2 Keywords:
Cc: Guest type: other
Host type: other

Description

I installed a Linux guest on a Linux host and guest's X.org is set to use trq keyboard layout but all the keys are mixed up. As if like some another keymap is in effect.

Attachments

trq (3.2 kB) - added by cartman on 02/08/07 19:39:18.
trq keymap file
diff.txt (1.0 kB) - added by Aldo Nogueira on 02/13/07 20:52:13.
keyboard.c diff
betterdiff.txt (1.8 kB) - added by Aldo Nogueira on 02/13/07 21:40:03.
A better keyboard.c diff

Change History

02/08/07 19:39:18 changed by cartman

  • attachment trq added.

trq keymap file

02/08/07 21:15:28 changed by achimha

Our Qt GUI uses keyboard translation (X to scancode) borrowed from WINE. Maybe syncing this file with a more recent version of Wine (ours is several years old) will address the problem.

In general, it is problem to get the scancode of keys in X. We have not found a better way so far.

02/09/07 08:26:35 changed by cartman

I got latest wine at hand if you tell me what file to sync I can test & report back.

02/09/07 09:02:12 changed by cartman

Looking at src/VBox/Frontends/VirtualBox/src/linux/keyboard.c Turkish keyboard layout correctly matches Turkish Q layout.

02/13/07 14:37:06 changed by Olav

Same problems occur when using the "US International" keyboard layout (with the dead keys) on the host. In my case, this is happening in Ubuntu 6.10 under Gnome 2.16.1. For example, if I type a straight apostroph (') the guest will always receive a backtick (`). Double quotes (") become a tilde (~) et cetera.

02/13/07 20:34:36 changed by Aldo Nogueira

A similar problem occurs with ABNT2 (brazilian) keyboards in a Ubuntu Edgy host. No matter what keyboard layout I choose on guest (a Debian Etch, in my case), the problem is the same. All keys from the last row of the keyboard, i.e., "\zxcvbnm,.;/" are shifted by one. If I press 'v', I get a 'c', for example. I downloaded the sources today from the subversion repository.

02/13/07 20:52:13 changed by Aldo Nogueira

  • attachment diff.txt added.

keyboard.c diff

02/13/07 20:59:46 changed by Aldo Nogueira

There are two ABNT2 keyboards on keyboard.c file. My keyboard have ALTGR key, so I copied the array from main_key_PT_br_alt_gr to main_key_PT_br and it is behaving better, I think. At least when on type a 'v' gets a 'v' now. There are some other keys that are still messed up.

02/13/07 21:40:03 changed by Aldo Nogueira

  • attachment betterdiff.txt added.

A better keyboard.c diff

02/13/07 21:40:32 changed by Aldo Nogueira

Me again. This time, I reverted the keyboard.c file and copied all ABNT parts from wine-0.9.30/dlls/winex11.drv/keyboard.c. Its better. Only two keys don't work: '\' and '/'.

02/16/07 18:22:54 changed by michael

[Note: the repository will be synchronised some time on Monday, so please wait until then to try this out].

Could those experiencing this bug, and who feel happy compiling VirtualBox themselves, test the current SVN version? You will need to create a file called LocalConfig.kmk and add the line

XKEYBOARD := 1

to it to activate the fix.

02/16/07 18:28:22 changed by michael

Forgot to say - you need to create LocalConfig?.kmk in the VirtualBox source base directory (where Config.kmk is). As I said, try it on Monday!

02/19/07 14:21:02 changed by cartman

This works fine for me, thanks!

02/22/07 09:58:42 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

This is the default setting now.

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy