mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
ui/cocoa: Respect left-command-key option
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Fixes: 4797adce5f
("ui/cocoa: add option to swap Option and Command")
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220317152949.68666-1-akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
47281859f6
commit
d6b6dea77e
1 changed files with 2 additions and 1 deletions
|
@ -923,7 +923,8 @@ - (bool) handleEventLocked:(NSEvent *)event
|
|||
/* Don't pass command key changes to guest unless mouse is grabbed */
|
||||
case kVK_Command:
|
||||
if (isMouseGrabbed &&
|
||||
!!(modifiers & NSEventModifierFlagCommand)) {
|
||||
!!(modifiers & NSEventModifierFlagCommand) &&
|
||||
left_command_key_enabled) {
|
||||
if (swap_opt_cmd) {
|
||||
[self toggleKey:Q_KEY_CODE_ALT];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue