VirtualBox

Ticket #19643 (new defect)

Opened 3 years ago

Last modified 3 years ago

Shift key status leaking from Guest to Host

Reported by: Ken S Owned by:
Component: VM control Version: VirtualBox 6.1.10
Keywords: shift key leaks Cc:
Guest type: Windows Host type: Windows

Description

If a VBox session is running and has focus, and an app in that guest session has focus, e.g. TextPad, and the shift key is pushed, you can push say a and TextPad displays A, so it has responded to the shift.

An app running in the host that is monitoring for the shift using the standard GetAsyncKeyState function receives notification that the shift key is down and thus will respond to it.

I believed the keybard, when captured, should act on all keyboard actions, and not be left for the host (I guess certain reserved keystrokes would be exempt).

This same scenario works fine on VMWare, which is what I am changing from - has worked for many years.

I cannot provide a workaround.

I can provide a program if required to monitor the shift status on the host.

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by Ken S

Please close.

comment:2 in reply to: ↑ 1 Changed 3 years ago by fbatschu

Replying to Ken S:

Please close.

Would be good to explain why you think the bug you've logged is no longer applicable? Thanks.

comment:3 follow-up: ↓ 4 Changed 3 years ago by Ken S

I was criticised on the forum and decided to bow out. I still regard it as a valid bug. I have tried GetKeyState instead, same result. I drilled down to the bit level, up down or latched, and could not find a way around it. It was interesting to me that caps lock works ok, turn it on in guest and it lights up, click in host and light goes off, back in in guest and on ... was impressed.

comment:4 in reply to: ↑ 3 Changed 3 years ago by fbatschu

Replying to Ken S:

I was criticised on the forum and decided to bow out. I still

Could you please include the Link to the forum discussion in this bug. thanks

comment:5 Changed 3 years ago by Ken S

Do I have to?

comment:6 Changed 3 years ago by Ken S

 https://forums.virtualbox.org/viewtopic.php?f=1&t=98516

I am not trying to get anyone in trouble.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use