Browse Source
Merge pull request #7191 from ltetak/osx_handle_cmd_key_up
OSX handle CMD+key up combinations in Avalonia
pull/7989/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/app.mm
|
|
|
@ -73,6 +73,11 @@ ComPtr<IAvnApplicationEvents> _events; |
|
|
|
_isHandlingSendEvent = true; |
|
|
|
@try { |
|
|
|
[super sendEvent: event]; |
|
|
|
if ([event type] == NSEventTypeKeyUp && ([event modifierFlags] & NSEventModifierFlagCommand)) |
|
|
|
{ |
|
|
|
[[self keyWindow] sendEvent:event]; |
|
|
|
} |
|
|
|
|
|
|
|
} @finally { |
|
|
|
_isHandlingSendEvent = oldHandling; |
|
|
|
} |
|
|
|
|