VirtualBox

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15619 closed defect (fixed)

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

Reported by: shek Owned by:
Component: other Version: VirtualBox 5.1.0
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

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.

Attachments (2)

Vbox_Logs_Keyboard_Layout_Issue.txt (184.1 KB ) - added by shek 8 years ago.
VirtualBox Kayboard Layout Issue Host Logs
Keyboard_Layout_Issue_Guest.txt (128.4 KB ) - added by shek 8 years ago.
Keyboard Layout Issue Guest Logs

Download all attachments as: .zip

Change History (7)

by shek, 8 years ago

VirtualBox Kayboard Layout Issue Host Logs

by shek, 8 years ago

Keyboard Layout Issue Guest Logs

comment:1 by Michael Thayer, 8 years ago

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 by shek, 8 years ago

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 by Michael Thayer, 8 years ago

Summary: 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 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Please reopen if still relevant with 5.1.2.

comment:5 by shek, 8 years ago

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

Note: See TracTickets for help on using tickets.

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