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
parent
commit
b18d2f74f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      native/Avalonia.Native/src/OSX/AvnView.mm

2
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){

Loading…
Cancel
Save