ui/cocoa: Respect left-command-key option
PATCH 1/1 ui/cocoa: Respect left-command-key option
Signed-off-by Akihiko Odaki <[email protected]>
--- ui/cocoa.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ui/cocoa.m +2 -1
@@ -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 {
Signature · 1 line
2.32.0 (Apple Git-132)
Quoted 10 lines · Akihiko Odaki
Signed-off-by Akihiko Odaki <[email protected]>--- ui/cocoa.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)ui/cocoa.m +0
-0
ui/cocoa.m - (bool) handleEventLocked:(NSEvent *)event · line 927
Quoted 6 lines
ui/cocoa.m +2
-1@@ -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) {
My bad for trying to resolve merge conflict myself sigh :(
Fixes 4797adce5f ("ui/cocoa: add option to swap Option and Command")
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 3 lines
ui/cocoa.m +0
-0if (swap_opt_cmd) { [self toggleKey:Q_KEY_CODE_ALT]; } else {
Quoted 4 lines · Akihiko Odaki
Signed-off-by Akihiko Odaki <[email protected]>--- ui/cocoa.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, queued to darwin-fixes.