Browse Source

Merge pull request #5169 from yatli/fix_macos_ctrl

fix #4996
Max Katz 3 years ago
parent
commit
99b4530e45
1 changed files with 6 additions and 1 deletions
  1. 6 1
      native/Avalonia.Native/src/OSX/AvnView.mm

+ 6 - 1
native/Avalonia.Native/src/OSX/AvnView.mm

@@ -439,7 +439,12 @@
 
     if(_parent != nullptr)
     {
-        _lastKeyHandled = _parent->BaseEvents->RawKeyEvent(type, timestamp, modifiers, key);
+        auto handled = _parent->BaseEvents->RawKeyEvent(type, timestamp, modifiers, key);
+        if (key != LeftCtrl && key != RightCtrl) {
+          _lastKeyHandled = handled;
+        } else {
+          _lastKeyHandled = false;
+        }
     }
 }