Browse Source
[Mac] Handle control keys all the time (#13220)
Co-authored-by: Dan Walmsley <dan@walms.co.uk>
pull/13255/head
Benedikt Stebner
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
native/Avalonia.Native/src/OSX/AvnView.mm
|
|
|
@ -461,7 +461,7 @@ |
|
|
|
auto timestamp = static_cast<uint64_t>([event timestamp] * 1000); |
|
|
|
auto modifiers = [self getModifiers:[event modifierFlags]]; |
|
|
|
|
|
|
|
if(!_lastKeyConsumeByInputContext){ |
|
|
|
if(!_lastKeyConsumeByInputContext || key <= 32){ |
|
|
|
auto handled = _parent->BaseEvents->RawKeyEvent(type, timestamp, modifiers, key, physicalKey, keySymbolUtf8); |
|
|
|
|
|
|
|
if(type == KeyDown && !handled && keySymbolUtf8 != NULL){ |
|
|
|
|