Alt-Tab does not function

This is for discussing general topics about how to use VirtualBox.
Post Reply
fni
Posts: 20
Joined: 19. Jan 2008, 14:46

Alt-Tab does not function

Post by fni »

Under Windows (guest), Alt-Tab is supposed to move the focus from one window to another.

In VirtualBox, the Alt-Tab seems to pass through the control of Windows and to be trapped by the underlying layer (Ubuntu).

What can we do to give back to Alt-Tab its previous functionality?

Best regards,
fni
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

There is nothing you can do about this. The Alt-Tab key is most probably catched by the host window manager, even if the keyboard is grabbed by the VM window.
fni
Posts: 20
Joined: 19. Jan 2008, 14:46

Post by fni »

Thanks for your answer.

It's just that VMware does it well... OK, there are plenty of other stuff it does less well than VBox, but...
fni
Posts: 20
Joined: 19. Jan 2008, 14:46

Post by fni »

To be complete, I have to admit that VMware does not trap, for example, the "switch screen" keys. We have first to get out of its full capture mode, and then it's ok.

On the opposite, VirtualBox allows the easy switching of screens, but does not catch Alt-F4 or PrintScr. So, maybe, it's a trade-off.

In the case it is, I still prefer the VBox solution... ;-)
fni
Posts: 20
Joined: 19. Jan 2008, 14:46

Post by fni »

Sorry. I realize that I was talking of "Alt-TAB" (not Alt-F4) for switching between applications...
gewe
Posts: 37
Joined: 8. Jan 2008, 20:36

Post by gewe »

In full screen mode, there is no indication of keyboard capture. If alt-tab activates the task switcher of the host, just cancel it, press the host key, and press alt-tab again. Now you should see the guest's task switcher. (This is the behaviour I get with a Linux host and a Windows guest with guest addidions installed.)

I think it is annoying that the keyboard capture is not "all or nothing". Typing text in a guest application, and then having alt-tab sent to the host is not what I expect.

It is especially annoying because in full screen mode there is no indication of the keyboard grab status. A system tray icon would be nice (or a change in the guest addidions icon).

I agree with the OP that VMware handles keyboard capture better than VirtualBox...
fni
Posts: 20
Joined: 19. Jan 2008, 14:46

Post by fni »

> In full screen mode, there is no indication of keyboard capture. If
> alt-tab activates the task switcher of the host, just cancel it, press the
> host key, and press alt-tab again. Now you should see the guest's task
> switcher. (This is the behavior I get with a Linux host and a Windows
> guest with guest additions installed.)

This is what I now have, since 1.5.6: by default, the guest now captures
"everything" [1] (Alt-TAB, etc.). Excellent.

And, as you say, if you want to switch over to the host, you first have to
hit the "host key" (Right Ctrl, in my case).


> I think it is annoying that the keyboard capture is not "all or nothing".
> Typing text in a guest application, and then having alt-tab sent to the
> host is not what I expect.

Yes, you're right, in fact.

Though, this is more or less what happens on my Ubuntu system: if I click on
"Super-T", Ubuntu catches this and opens a terminal for me (personal
customization), even if Emacs if the currently open application.

If I click on "Super-R", for example, and I have nothing bound to it in
Ubuntu, then the key binding will go down to Emacs, which, at its turn, will
launch something (or nothing), depending on the known bindings...

So, that's an example or an application (Ubuntu OS) that catches some key
bindings, and lets go the unknown ones further down (or up, depends on how
you look).

But you're right that a "all-or-nothing" approach is good as well, if we can
easily change the capture status, like it is now.


> It is especially annoying because in full screen mode there is no
> indication of the keyboard grab status. A system tray icon would be nice
> (or a change in the guest additions icon).

It'd be a good addition...


> I agree with the OP that VMware handles keyboard capture better than
> VirtualBox...

Now, my problem is resolved since 1.5.6, as I said ...

[1] ... except for one key binding: "PrintScreen" is not trapped by the
guest, and goes down to the host!

This is a proof that, even now, it is not yet an "all-or-nothing" approach,
but it is good enough for me (since 1.5.6)!
Post Reply