On Aug 4, 2013, at 7:58 AM, Anthony Liguori wrote: > On Sun, Aug 4, 2013 at 4:39 AM, Peter Maydell <peter.mayd...@linaro.org> > wrote: >> >> "Should the QEMU UI use the menu-accelerator key for menus or >> should it pass it through to the guest" is a generic UI front-end >> problem; any solution should not be specific to a single UI, >> we should handle it the same way for all front-ends. >
Ok. I guess that sounds like a good idea, but hard to implement. I don't think any single piece of code could be applied to all the different UI's. There is SDL, GTK, Cocoa, and who knows what else to handle. Each UI library would need its own code to deal with the meta key issue. > The right way to handle this would be to access the hardware keycode > and avoid the keymap table entirely. I'm sure there is such an API in > Cocoa... > > Regards, > > Anthony Liguori Your idea does have a few issues with it. This might work with a Mac guest on a Mac host, but what about a PC guest on a Mac host? A PC operating system like Windows 95 would probably not be able to recognize a Macintosh keyboard. The current strategy in cocoa.m is to emulate a pc/xt keyboard. This kind of keyboard works for a lot of different guest operating systems - including Mac OS X.