ui/cocoa: Pass command key through to guest when VM has mousegrab
commit8895919a044e9e8111faebabacaa2245d8ce4e51
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 8 Dec 2013 22:59:02 +0000 (8 22:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 12 Jan 2014 22:23:53 +0000 (12 22:23 +0000)
tree2958343c48f2d4408622fd37a999595f0652ee6d
parenteedc1a5db5e4d941e39e54344322c0b1e89dfdcd
ui/cocoa: Pass command key through to guest when VM has mousegrab

The guest might want to be able to use the command key for its won
purposes (as command if it is MacOS X, or for the Windows key if
it is a PC guest, for instance). In line with other UI frontends,
pass it through if the guest has mousegrab, and only use it for UI
menu accelerators if not grabbed.

Thanks to John Arbuckle for reporting this problem, helping
us work through what the best solution would be and providing
a patch which was the initial inspiration for this one.

Reported-by: John Arbuckle <programmingkidx@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1386543546-31919-2-git-send-email-peter.maydell@linaro.org
ui/cocoa.m