[OpenBIOS] [PATCH] Adds the get-key-map word to the keyboard node.

Programmingkid programmingkidx at gmail.com
Tue Nov 6 01:49:19 CET 2012


On Nov 5, 2012, at 6:17 PM, Segher Boessenkool wrote:

>> I haven't contacted the QEMU mailing list. The get-key-map word appears to be an Apple added word, so other OS's will not use it. You don't like the fact the Control key is mapped as the Command key. QEMU currently does not send the Command key to the emulated system.
> 
> I suspect you're just not asking it properly.

Asking? Asking what?

What is so bad about using the Control key in place of the Command key? Verbose mode would just be Control-V and single user mode would be Control-S. Doesn't sound so Earth shattering to me. 

> 
>> There are other issues to deal with if the Command key were sent to the guest OS. If QEMU was placed in full screen mode, how would the user return to windowed mode? Command-F wouldn't work any more.
> 
> Nonsense.

The Command-F sequence would go straight to the emulated environment. Not to QEMU. I suppose we could filter out one key sequence like Command-F. But this might be a terrible pain for the user. The user might push Command-F expecting one thing, but see the window mode appear and disappear unexpectedly. 

> 
>> Another issue is what word would we use to detect the Command key? The "key" word is what I use to detect the pushed key on the keyboard. Would this word be able to detect the Command key?
> 
> KEY will not do anything for the control key, either.  You want EKEY
> (or some custom word, of course).

So now all we need is the EKEY word. You care to implement it? 

Do you also think you could implement sending the command key to the guest OS as well? I am sure the QEMU people would love to see a patch from you.


More information about the OpenBIOS mailing list