Ticket #15058 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Host+<key> doesn't work if host layout not US

Reported by: socratis Owned by:
Component: other Version: VirtualBox 5.0.14
Keywords: Cc:
Guest type: other Host type: other


On my host (OSX 10.9.5) I have a dual keyboard layout; US and Greek. If the host keyboard is set to Greek, Host+<key> combinations do not work, i.e. Host+"F" (which is seen as Host+"Φ") does not toggle fullscreen mode. Is there a way to have the keyboard recognized regardless of the layout? Keyboard shortcuts on the host (like Cmd+H for hide) work that way, i.e. they don't care for the current layout, it's the underlying key that's important. It would be really convenient.

NB. I tried the same operation on a Windows host and it works independently of the host keyboard layout.

Change History

comment:1 Changed 4 years ago by michael

I can confirm by looking at the code that this is implemented for X11 and Windows but not for OS X. Unfortunately, none of our developers who would be qualified to fix this looks likely to be able to fit it in in the foreseeable future.

In case any external developers wish to fix this, it is handled in UIKeyboardHandler::processHotKey() in src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp (all references against version 5.0, though a fix would need to be against trunk). I found a Stack Overflow question<1> which provides a lot of the information which would be needed to implement it on OS X.


comment:2 Changed 4 years ago by socratis

Michael, thanks a) for confirming it and b) for providing the "culprit" and the Stack Overflow reference. Not a C programmer, but I will definitely have a look at it.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use