VirtualBox

18 年 前 建立

18 年 前 結束

10 年 前 更新

#2 closed defect (fixed)

Keyboard layout is messed up in Turkish layout

回報者: İsmail Dönmez 負責人:
元件: other 版本: VirtualBox 1.3.2
關鍵字: 副本:
Guest type: other Host type: other

描述 (由 Frank Mehnert 作最後更新)

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.

附加檔案 (3)

trq (3.2 KB ) - 18 年 前, 由 İsmail Dönmez 新增
trq keymap file
diff.txt (1005 位元組 ) - 18 年 前, 由 Aldo Nogueira 新增
keyboard.c diff
betterdiff.txt (1.8 KB ) - 18 年 前, 由 Aldo Nogueira 新增
A better keyboard.c diff

下載所有附檔: .zip

更動歷史 (15)

18 年 前İsmail Dönmez 編輯

附檔: 新增 trq

trq keymap file

comment:1 18 年 前Achim Hasenmueller 編輯

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.

comment:2 18 年 前İsmail Dönmez 編輯

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

comment:3 18 年 前İsmail Dönmez 編輯

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

comment:4 18 年 前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.

comment:5 18 年 前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.

18 年 前Aldo Nogueira 編輯

附檔: 新增 diff.txt

keyboard.c diff

comment:6 18 年 前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.

18 年 前Aldo Nogueira 編輯

附檔: 新增 betterdiff.txt

A better keyboard.c diff

comment:7 18 年 前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 '/'.

comment:8 18 年 前Michael Thayer 編輯

[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.

comment:9 18 年 前Michael Thayer 編輯

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!

comment:10 18 年 前İsmail Dönmez 編輯

This works fine for me, thanks!

comment:11 18 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

This is the default setting now.

comment:12 10 年 前Frank Mehnert 編輯

描述: 修改 (差異)

Test, please ignore.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette