VirtualBox

Opened 15 years ago

Last modified 8 years ago

#4111 closed defect

Mac OSX Host: Numlock Misbehaves When Focus Changes from Host-to-Guest — at Initial Version

Reported by: Bill Geisler Owned by:
Component: VM control Version: VirtualBox 2.2.2
Keywords: numeric keypad numlock Cc:
Guest type: Windows Host type: Mac OS X

Description

I use an Apple extended keyboard (includes numeric keypad). I've noticed odd behavior with numlock for the numeric keypad when focus is switched from the Host-to-Guest. In summary one of two things happens:

  1. Switching from the Host-to-Guest requires the numlock to be activated twice.
  2. Numlock activates on every-other Host-to-Guest switch in focus.

This behavior is reproducible with VBox 2.2.2 using Mac OSX (Leopard) Host and WinXP Guest as outlined below.

First: Set-up Guest in Fullscreen Mode in its own Space

I prefer to run in Fullscreen Mode with a WinXP guest in its own Space. I like to easily switch Spaces back and forth with ctrl-arrow. You can do this if you do the following:

  1. Shutdown your VM.
  2. In the "VirtualBox" menu go to "Preferences . . .".
  3. In the Preferences window, select "Input".
  4. In the Input menu unselect the "Auto Capture Keyboard" checkbox.
  5. Restart your VM and fast Space switching works similar to Parallels -- use your shortcut (ctrl-arrow, etc.) without first using host key (e.g. left-).

Now on to unusual behavior with a numeric keypad. . .

I have an iMac with an Apple wireless extended Mac keyboard (i.e. numeric keypad included) and I do a lot of number entry in my work. With this keyboard the "numlock" is the key combination "shift-clear". When switching Spaces from Mac use (I'll call it a "Mac Space" from here on) back to my VBox guest WinXP ("Guest Space" from now on) the numlock is off. To turn the numlock back on I have to do the "shift-clear" twice to resume use of the numeric keypad in the Guest Space. Now here is another strange thing I noticed, if you switch Spaces 2x using the configuration outlined above the numlock comes back on without activating it.

Since this numlock behavior might be a bit hard to follow from the above, you can see it in action for yourself with the following experiment:

  1. Set up your VM for fast Spaces switching as outlined above and start your VBox VM in Fullscreen Mode (Guest Space).
  2. In your VM Guest Space (WinXP in my case) start Notepad and numlock (shift-clear) the numeric keypad.
  3. Type "4444" in Notepad using the numeric keypad.
  4. Switch (crtl-arrow) back to a Mac Space.
  5. Switch back to the Guest Space and hit "4" on your numeric keypad. Since numlock is off it now acts as an arrow key and you should see the cursor go back one space.
  6. Switch back to a Mac Space and then again switch back to the Guest Space.
  7. Now type "6" in Notepad. Notice the numlock is now activated without pressing shift-clear. You should end up with 44464 in your Notepad window.

Pretty weird! This just demonstrates this problem of the numlock reactivating on every-other Space switch from Mac Space to Guest Space. Otherwise you have to activate the numlock twice to use the numeric keypad after a change in focus. This seems to be a Virtualbox 2.2.2 bug. If you have a work-around to keep a numeric keypad enabled during Host-to-Guest focus changes (as with my Space switching) please let me know.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use