VirtualBox

8 年 前 建立

8 年 前 結束

8 年 前 更新

#15619 closed defect (fixed)

Keyboard layout changes automatically in 5.1 -> fixed in 5.1.2 and later

回報者: shek 負責人:
元件: other 版本: VirtualBox 5.1.0
關鍵字: 副本:
Guest type: Linux Host type: Linux

描述

Setup: Linux Host: Fedora 24 + Cinnamon Linux Guest: Fedora 24 + Mate/Cinnamon(either)

On both Host and Guest, I have two keyboard layouts 'en' and 'hi'. I use "left Alt + left Shift" to change between layouts. The trouble is that ever since I've installed 5.1, the layouts keep changing automatically. 'en' becomes 'hi' mostly. Also, the layouts on the Host and Guest seem to be tied when I am in the Guest as in when I press 'left Alt + left Shift' in the Guest, the layout of both the Host and Guest change. Its annoying because every time I switch between 'Host' and 'Guest' and start typing, I find that I am typing in the wrong script because of changed layout.

Let me know what logs I can provide for you guys to debug this. And yes, this is a regression since 5.0.24.

Logs attached.

附加檔案 (2)

Vbox_Logs_Keyboard_Layout_Issue.txt (184.1 KB ) - 8 年 前, 由 shek 新增
VirtualBox Kayboard Layout Issue Host Logs
Keyboard_Layout_Issue_Guest.txt (128.4 KB ) - 8 年 前, 由 shek 新增
Keyboard Layout Issue Guest Logs

下載所有附檔: .zip

更動歷史 (7)

8 年 前shek 編輯

VirtualBox Kayboard Layout Issue Host Logs

8 年 前shek 編輯

Keyboard Layout Issue Guest Logs

comment:1 8 年 前Michael Thayer 編輯

I suspect that this happens when you switch away from the virtual machine window while a key is held down on the keyboard. Possibly by releasing keyboard capturing and alt-tabbing away, which leaves the alt key down in the virtual machine. In that case we need to send an alt key release event, and to decrease the likelyhood of that causing side effects we send a control-shift-alt down and up sequence. In previous versions we used something else which caused other problems. It is quite likely that we will not find a solution which does not upset someone, so the easiest may be to just choose a different key combination.

comment:2 8 年 前shek 編輯

Ok. I will try to find a more convenient key combination. However, this "Left Alt + Left Shift" is the default in many distros. Maybe you can send a Right Alt + Right Shift for the key up and down. Just a suggestion because I havent yet encountered anyone using the Right Alt + Right Shift combo for anything. Do consider.

Thanks for replying.

comment:3 8 年 前Michael Thayer 編輯

摘要: Keyboard layout changes automatically in 5.1Keyboard layout changes automatically in 5.1 -> fixed in 5.1.2 and later

I changed the code so that now, instead of inserting the previous combination it inserts the host key sequence (or rather the modifiers from the sequence). That can be changed by the user if it causes problems. Hope that solves your problem.

comment:4 8 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

Please reopen if still relevant with 5.1.2.

comment:5 8 年 前shek 編輯

Thank you for fixing it! It had started to affect my daily workflow. Now back to normal :)

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

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